Skip to content

Commit

Permalink
haskell-generic-builder: disable library-for-ghci by default
Browse files Browse the repository at this point in the history
This commit disables the library-for-ghci flag passed to
`Setup configure` in the Haskell generic-builder.nix file.

This stops the HSfoo.o file from being built.  Building this
HSfoo.o file caused doctest to take an extremely long time
to load dependencies when running.

This is a follow-up from NixOS#58743.
  • Loading branch information
cdepillabout authored and peti committed Apr 12, 2019
1 parent 6b63bbb commit 757099e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/development/haskell-modules/generic-builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ in
# built. Will delay failures, if any, to compile time.
allowInconsistentDependencies ? false
, maxBuildCores ? 4 # GHC usually suffers beyond -j4. https://ghc.haskell.org/trac/ghc/ticket/9221
, # Build a pre-linked .o file for this Haskell library. This can make it
# slightly faster to load this library into GHCi, but takes extra disk space
# and compile time.
enableLibraryForGhci ? true
, # If set to true, this builds a pre-linked .o file for this Haskell library.
# This can make it slightly faster to load this library into GHCi, but takes
# extra disk space and compile time.
enableLibraryForGhci ? false
} @ args:

assert editedCabalFile != null -> revision != null;
Expand Down

0 comments on commit 757099e

Please sign in to comment.