HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulebase-compat-batteries-0.14.1Haskell2010

Control.Monad.ST.Unsafe.Compat

  • 3 values
valueunsafeIOToST :: IO a -> ST s a
#

Convert an IO action to an ST action. This relies on IO and ST having the same representation modulo the constraint on the state thread type parameter.

valueunsafeInterleaveST :: ST s a -> ST s a
#

unsafeInterleaveST allows an ST computation to be deferred lazily. When passed a value of type ST a, the ST computation will only be performed when the value of the a is demanded.