Difference between revisions of "Unsafe functions"
From HaskellWiki
Line 1: | Line 1: | ||
There are a number of '''unsafe functions''' in the libraries. | There are a number of '''unsafe functions''' in the libraries. | ||
− | * <hask>unsafePerformIO</hask> | + | * <hask>unsafePerformIO :: IO a -> a</hask> |
− | * <hask>unsafeInterleaveIO</hask> | + | * <hask>unsafeInterleaveIO :: IO a -> IO a</hask> |
+ | * <hask>unsafeInterleaveST :: ST s a -> ST s a</hask> | ||
+ | * <hask>unsafeIOToST :: IO a -> ST s a</hask> | ||
+ | * <hask>unsafeIOToSTM :: IO a -> STM a</hask> | ||
+ | * <hask>unsafeFreeze, unsafeThaw</hask> | ||
{{stub}} | {{stub}} |
Revision as of 01:52, 8 May 2006
There are a number of unsafe functions in the libraries.
unsafePerformIO :: IO a -> a
unsafeInterleaveIO :: IO a -> IO a
unsafeInterleaveST :: ST s a -> ST s a
unsafeIOToST :: IO a -> ST s a
unsafeIOToSTM :: IO a -> STM a
unsafeFreeze, unsafeThaw
This article is a stub. You can help by expanding it.