<div dir="ltr"><div dir="ltr">On Tue, 21 Jun 2022 at 11:33, Joachim Breitner <<a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Am Dienstag, dem 21.06.2022 um 10:47 +0100 schrieb Simon Marlow:<br>
> If it's backported to 9.2, then code wanting to use it would need to<br>
> have a `ghc >= 9.2.4` constraint in the `.cabal` file, which is a bit<br>
> unusual. We don't normally add new language features in a patchlevel<br>
> release. But this isn't a strong argument for not doing it I guess -<br>
> you would need that constraint if you relied on some bug that was<br>
> fixed in 9.2.4 too.<br>
<br>
Slight digression, but does Cabal even allow specifying bounds on the<br>
compiler implementation? If you put this into the build-depends it<br>
might have that effect, but it will also depend on ghc-the-library, not<br>
what people usually do.<br></blockquote><div><br></div><div>Yes, you can do this (stolen from one of my .cabal files):<br></div><div><br></div><div>    if impl(ghc >= 8.8)<br>      buildable: True<br>    else<br>      buildable: False<br></div><div> </div><div>Cheers</div><div>Simon<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If I need to depend on a specific version of GHC, I tend to peek at<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history" rel="noreferrer" target="_blank">https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history</a><br>
and hope that base was bumped together with it, and depend on that<br>
version of base. Is there a better way?<br>
<br>
Cheers,<br>
Joachim<br>
-- <br>
Joachim Breitner<br>
  <a href="mailto:mail@joachim-breitner.de" target="_blank">mail@joachim-breitner.de</a><br>
  <a href="http://www.joachim-breitner.de/" rel="noreferrer" target="_blank">http://www.joachim-breitner.de/</a><br>
<br>
_______________________________________________<br>
ghc-steering-committee mailing list<br>
<a href="mailto:ghc-steering-committee@haskell.org" target="_blank">ghc-steering-committee@haskell.org</a><br>
<a href="https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee" rel="noreferrer" target="_blank">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee</a><br>
</blockquote></div></div>