Don Stewart wrote:

You just wrote unsafeCoere# a different way:

        typeOf T = typeOf (undefined :: IORef ())

Right. It's straightforward to write unsafe segfaulting code in apparently safe Haskell.

Manual Typeable deriving should probably be disabled :-)

Another ugly special-case hack. There's a better way.

--
Ashley Yakeley
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to