Closed hvr closed 7 years ago
The cabal flag ghc74-generic
enables ghc-prim-0.2.0.0 which avoids this failure with GHC 7.4.x and base-4.5.
https://travis-ci.org/khibino/haskell-relational-record/jobs/219966118
@khibino Oh, I see... ok, there's still a problem though: the way the .cabal file is written, cabal's solver has no indication that it needs to toggle the flag for GHC 7.4! In fact, future cabal versions may warn about the way that flag was used. In order to do this properly, you'd have to formulate the conditional in such a way, that the flag setting has no degree-of-freedom anymore (i.e. the constraints resulting from each if
-branch must be mutually exclusive in some way).
However, in this specific case, there's an easier way to handle this; get rid of the flag and write instead
if impl(ghc == 7.4.*)
build-depends: ghc-prim == 0.2.*
I use a variant of this technique in e.g. http://hackage.haskell.org/package/deepseq-1.4.2.0/dependencies
@khibino I went ahead and replaced all flags by the more idiomatic impl()
-based pattern, see #53
@hvr If it's alright with you, please tell me your situation using HRR with GHC 7.4.
@khibino well, looking at http://104.239.175.197:8080/package/persistable-record the latest release looks fine
I see. Thanks!
The cabal file states to support
base < 5
, however at least `base-4.5 does not work: