[project @ 1999-03-05 10:21:22 by sof]
Support for unsafely thawing your (Byte)Arrays, i.e., added the following ops: MutableArray.unsafeThawArray :: Ix ix => Array ix elt -> ST s (MutableArray s ix elt) MutableArray.unsafeThawByteArray :: Ix ix => ByteArray ix -> ST s (MutableByteArray s ix) MutableArray.thawByteArray :: Ix ix => ByteArray ix -> ST s (MutableByteArray s ix) ST.unsafeThawSTArray :: Ix ix => Array ix elt -> ST s (STArray s ix elt) LazyST.unsafeThawSTArray :: Ix ix => Array ix elt -> ST s (STArray s ix elt) IOExts.unsafeFreezeIOArray :: Ix ix => IOArray ix elt -> IO (Array ix elt) IOExts.unsafeThawIOArray :: Ix ix => Array ix elt -> IO (IOArray ix elt) + removed the re-exportation of Monad that ST and LazyST did.
Showing
- ghc/compiler/nativeGen/StixPrim.lhs 2 additions, 0 deletionsghc/compiler/nativeGen/StixPrim.lhs
- ghc/compiler/prelude/PrimOp.lhs 70 additions, 42 deletionsghc/compiler/prelude/PrimOp.lhs
- ghc/docs/users_guide/MutableArray.sgml 15 additions, 4 deletionsghc/docs/users_guide/MutableArray.sgml
- ghc/includes/PrimOps.h 4 additions, 1 deletionghc/includes/PrimOps.h
- ghc/lib/exts/IOExts.lhs 13 additions, 0 deletionsghc/lib/exts/IOExts.lhs
- ghc/lib/exts/LazyST.lhs 4 additions, 4 deletionsghc/lib/exts/LazyST.lhs
- ghc/lib/exts/MutableArray.lhs 35 additions, 1 deletionghc/lib/exts/MutableArray.lhs
- ghc/lib/exts/ST.lhs 35 additions, 22 deletionsghc/lib/exts/ST.lhs
- ghc/lib/std/PrelArr.lhs 8 additions, 0 deletionsghc/lib/std/PrelArr.lhs
- ghc/lib/std/PrelGHC.hi-boot 3 additions, 0 deletionsghc/lib/std/PrelGHC.hi-boot
- ghc/rts/PrimOps.hc 13 additions, 1 deletionghc/rts/PrimOps.hc
Loading
Please register or sign in to comment