File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ packages:
4949extra-packages : alex, dmq-node == 0.3.0.0
5050
5151program-options
52- ghc-options : -Werror
52+ ghc-options : -Werror -fno-spec-eval-dictfun
5353
5454test-show-details : direct
5555
Original file line number Diff line number Diff line change @@ -351,11 +351,18 @@ let
351351 lib . mkOption {
352352 type = lib . types . submodule (
353353 { config , lib , ... } :
354- lib . mkIf config . package . isLocal
355- {
356- configureFlags = [ "--ghc-option=-Werror" ]
357- ++ lib . optional ( args . config . compiler . version == "8.10.7" ) "--ghc-option=-Wwarn=unused-packages" ;
358- }
354+ lib . mkMerge [
355+ ( lib . mkIf config . package . isLocal
356+ {
357+ configureFlags = [ "--ghc-option=-Werror" "--ghc-option=-fno-spec-eval-dictfun" ]
358+ ++ lib . optional ( args . config . compiler . version == "8.10.7" ) "--ghc-option=-Wwarn=unused-packages" ;
359+ } )
360+ ( lib . mkIf ( ! config . package . isLocal )
361+ {
362+ configureFlags = [ "--ghc-option=-fno-spec-eval-dictfun" ]
363+ ++ lib . optional ( args . config . compiler . version == "8.10.7" ) "--ghc-option=-Wwarn=unused-packages" ;
364+ } )
365+ ]
359366 ) ;
360367 } ) ;
361368 } )
You can’t perform that action at this time.
0 commit comments