RFC: provide patch-level information at __GLASGOW_HASKELL__

Carter Schonwald carter.schonwald at gmail.com
Fri Apr 11 15:04:34 UTC 2014

exactly, thats a use case I see for this in some of my own code.

Eg, once 7.8.3 comes around, i'll be changing my code to use specialize
more agreesively,
but I'll still want to make sure that the code gets compiled decently with
7.6 and earlier 7.8 ghcs

https://ghc.haskell.org/trac/ghc/ticket/8848 (basically in the mean time I
have to do some overly agressive INLINING to get the same outcome I want)

On Fri, Apr 11, 2014 at 4:47 AM, Herbert Valerio Riedel
<hvriedel at gmail.com>wrote:

> On 2014-04-11 at 10:38:00 +0200, Simon Marlow wrote:
> [...]
> > We could add a __GLASGOW_HASKELL_PATCHLEVEL__ macro, but I'd like to
> > understand more about why people need this, and whether we should be
> > more careful about what we do in patchlevel releases.
> What about the use-case when you want to workaround a compiler bug that
> existed for GHC==7.6.1 but which was fixed for GHC>=7.6.2 (and thus
> doesn't need the workaround anymore)?
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140411/9df37b32/attachment.html>

More information about the ghc-devs mailing list