safe vs. unsafe (Was: Haskell Platform proposal: Add the vector package)

Henning Thielemann lemming at
Thu Jul 12 00:22:36 CEST 2012

On Wed, 11 Jul 2012, Ian Lynagh wrote:

> If you do that, then you can't do
>    import Old
>    import MyMod.Unsafe
>    f = ... unsafeDoSomething ...
> as you will get an ambiguity error.
> (you can work around it, e.g. by using a qualified name to refer to
> unsafeDoSomething, but different people will have differing opinions
> about whether that's OK)

Names of unsafe functions cannot be long enough. :-) I think using 
qualified names is much easier than adding another extension to GHC.

More information about the Libraries mailing list