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
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
On 23 November 2012 15:47, Roman Cheplyaka r...@ro-che.info 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
* Herbert Valerio Riedel h...@gnu.org [2012-11-24 00:06:44+0100]
Roman Cheplyaka r...@ro-che.info 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.