[Haskell-cafe] Replacing CPP [was: Current status of Mavericks CPP]

Erik Hesselink hesselink at gmail.com
Wed Apr 16 13:03:43 UTC 2014


On Wed, Apr 16, 2014 at 2:48 PM, Ben Franksen <ben.franksen at online.de> wrote:
> There are people on this list who grep the whole of hackage in a matter of
> minutes whenever someone (seriously) proposes some non-compatible change to
> see who many libraries would be affected. (Any volunteers?) My guess is that
> no more than a few hands full of the hackage packages use more than
> conditional compilation, but I may be completely wrong about that.

I think some core packages like base and (IIRC) containers use CPP to
define instances and such.

One conditional compilation feature that's used relatively often and
not covered by your earlier proposal is bounds checks on libraries
through cabal. It could be handled the same way as GHC versions, of
course, but I think the triple of version numbers is a bit more
'correct' and flexible.

Erik


More information about the Haskell-Cafe mailing list