Open
Description
Steps:
- Compile your program (using
new-build
). Realize it has a space leak. - Change cabal.project to:
package ingest
ghc-options: -fno-full-laziness
- Call
new-build
again:
# cabal new-build
In order, the following will be built (use -v for more details):
- ingest-0.1.0.0 (lib) --enable-profiling (configuration changed)
- ingest-0.1.0.0 (exe:ingest) --enable-profiling (configuration changed)
Configuring component lib from ingest-0.1.0.0
Preprocessing library ingest-0.1.0.0...
Configuring component exe:ingest from ingest-0.1.0.0
Preprocessing executable 'ingest' for ingest-0.1.0.0...
Note that although it detected "configuration changed", nothing actually got recompiled. The change only takes effect after I manually delete the dist-newstyle
directory and rebuild again.