[ghc-steering-committee] #511 Deep Subsumption, recommendation: accept
Joachim Breitner
mail at joachim-breitner.de
Mon Jan 2 17:10:14 UTC 2023
Hi,
Am Dienstag, dem 21.06.2022 um 11:45 +0100 schrieb Simon Marlow:
> > Slight digression, but does Cabal even allow specifying bounds on the
> > compiler implementation? If you put this into the build-depends it
> > might have that effect, but it will also depend on ghc-the-library, not
> > what people usually do.
>
> Yes, you can do this (stolen from one of my .cabal files):
>
> if impl(ghc >= 8.8)
> buildable: True
> else
> buildable: False
just in case someone reads our conversation here, TIL that the using
buildable is not quite correct, and should probably be
if impl(ghc < 8.8)
build-depends: unbuildable <0
according to Oleg in
https://github.com/haskell/mtl/issues/138#issuecomment-1369068398
Cheers,
Joachim
--
Joachim Breitner
mail at joachim-breitner.de
http://www.joachim-breitner.de/
More information about the ghc-steering-committee
mailing list