File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ packages:
3636extra-packages : alex
3737
3838program-options
39- ghc-options : -Werror
39+ ghc-options : -Werror -fno-spec-eval-dictfun
4040
4141test-show-details : direct
4242
Original file line number Diff line number Diff line change @@ -321,11 +321,18 @@ let
321321 lib . mkOption {
322322 type = lib . types . submodule (
323323 { config , lib , ... } :
324- lib . mkIf config . package . isLocal
325- {
326- configureFlags = [ "--ghc-option=-Werror" ]
327- ++ lib . optional ( args . config . compiler . version == "8.10.7" ) "--ghc-option=-Wwarn=unused-packages" ;
328- }
324+ lib . mkMerge [
325+ ( lib . mkIf config . package . isLocal
326+ {
327+ configureFlags = [ "--ghc-option=-Werror" "--ghc-option=-fno-spec-eval-dictfun" ]
328+ ++ lib . optional ( args . config . compiler . version == "8.10.7" ) "--ghc-option=-Wwarn=unused-packages" ;
329+ } )
330+ ( lib . mkIf ( ! config . package . isLocal )
331+ {
332+ configureFlags = [ "--ghc-option=-fno-spec-eval-dictfun" ]
333+ ++ lib . optional ( args . config . compiler . version == "8.10.7" ) "--ghc-option=-Wwarn=unused-packages" ;
334+ } )
335+ ]
329336 ) ;
330337 } ) ;
331338 } )
You can’t perform that action at this time.
0 commit comments