HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Unsafe functions

Categories: Stub articles | Idioms

There are a number of unsafe functions in the libraries.

Unsafe functions can break type safety (unsafeCoerce#, unsafePerformIO), interfere with lazy IO (unsafeInterleaveIO), or break parametricity (seq). Their use (except in the case of seq) would require some kind of assurance on the part of the programmer that what they're doing is safe.

"unsafe" is also a keyword which can be used in a foreign import declaration.

This article is a stub. You can help by expanding it.

Retrieved from "http://haskell.org/haskellwiki/Unsafe_functions"

This page has been accessed 2,620 times. This page was last modified 11:45, 8 June 2008. Recent content is available under a simple permissive license.