[Add notes about unsafeCoerce simonpj@microsoft.com**20060731080922] { hunk ./docs/users_guide/glasgow_exts.xml 6075 - The <literal>inline</literal> function + The <literal>lazy</literal> function hunk ./docs/users_guide/glasgow_exts.xml 6099 + + + The <literal>unsafeCoerce#</literal> function + +The function unsafeCoerce# allows you to side-step the +typechecker entirely. It has type + + unsafeCoerce# :: a -> b + +That is, it allows you to coerce any type into any other type. If you use this +function, you had better get it right, otherwise segmentation faults await. +It is generally used when you want to write a program that you know is +well-typed, but where Haskell's type system is not expressive enough to prove +that it is well typed. + }