[Haskell-cafe] Portable implementation of unsafeCoerce
Neil Mitchell
ndmitchell at gmail.com
Tue Feb 6 11:04:37 EST 2007
Hi Alfonso,
> Reading the sources of Lava (a Haskell Hardware Description DSL) I run
> into this definition ...
>
>
> unsafeCoerce :: a -> b
> Is this actually equivalent to the infamous unsafeCoerce# ?
Yes, see the comment in the haddock documentation for unsafePerformIO:
http://haskell.org/ghc/docs/latest/html/libraries/base/Foreign.html#v%3AunsafePerformIO
Thanks
Neil
More information about the Haskell-Cafe
mailing list