FWIW, some very core libraries do this:
http://hackage.haskell.org/packages/archive/bytestring/0.10.2.0/doc/html/src/Data-ByteString.html
(see very top of linked source file)
Perhaps a more general solution would be for GHC to take the internet
explorer route and require a special javascript in
* Herbert Valerio Riedel [2012-11-24 00:06:44+0100]
> Roman Cheplyaka writes:
> > It has been pointed out before that in order for Safe Haskell to be
> > useful, libraries (especially core libraries) should be annotated
> > properly with Safe Haskell LANGUAGE pragmas.
> >
> > However, that would
On 23 November 2012 15:47, Roman Cheplyaka wrote:
> Should it be advised to surround safe annotations with CPP #ifs?
> Or does anyone see a better way out of this contradiction?
I think that would be good advice. Note that even if you're only using
GHC then you still want to use CPP in order to s
It has been pointed out before that in order for Safe Haskell to be
useful, libraries (especially core libraries) should be annotated
properly with Safe Haskell LANGUAGE pragmas.
However, that would make these libraries unusable with alternative
Haskell implementations, even if otherwise they thes