
5 Dec
2010
5 Dec
'10
5:05 p.m.
Jason Dagit schrieb:
I see that others have provided answers on here, but another way is to change the check from:
if flag(ghc7) build-depends: base >= 4.3 && < 5 cpp-options: -DGHC7 else build-depends: base >= 4 && < 4.3
to this: if impl(ghc >= 7) build-depends: base >= 4.3 && < 5 cpp-options: -DGHC7 else build-depends: base >= 4 && < 4.3
Isn't it better to move the dependency on 'base' out of the If block? I mean, someone might succeed to use GHC-7 with base-4.2 or GHC<7 or a different compiler with base-4.3.