[project @ 1997-10-13 16:12:54 by simonm]
Changes to unbox the state in the ST and IO monads. ST now has type newtype ST s a = ST (State# s -> STret s a) data STret s a = STret (State# s) a IO now has type newtype IO a = IO (State# RealWorld -> IOResult a) data IOResult a = IOok (State# RealWorld) a | IOfail (State# RealWorld) IOError So ST should be slightly more efficient, and IO should be nearly as efficient as ST.
Showing
- ghc/compiler/basicTypes/Unique.lhs 4 additions, 0 deletionsghc/compiler/basicTypes/Unique.lhs
- ghc/compiler/deSugar/DsCCall.lhs 21 additions, 19 deletionsghc/compiler/deSugar/DsCCall.lhs
- ghc/compiler/prelude/PrelInfo.lhs 1 addition, 1 deletionghc/compiler/prelude/PrelInfo.lhs
- ghc/compiler/prelude/PrimOp.lhs 1 addition, 1 deletionghc/compiler/prelude/PrimOp.lhs
- ghc/compiler/prelude/TysWiredIn.lhs 16 additions, 1 deletionghc/compiler/prelude/TysWiredIn.lhs
- ghc/compiler/simplCore/SimplUtils.lhs 0 additions, 1 deletionghc/compiler/simplCore/SimplUtils.lhs
- ghc/compiler/simplCore/Simplify.lhs 3 additions, 3 deletionsghc/compiler/simplCore/Simplify.lhs
- ghc/driver/ghc-asm.lprl 0 additions, 1 deletionghc/driver/ghc-asm.lprl
- ghc/driver/ghc.lprl 0 additions, 1 deletionghc/driver/ghc.lprl
- ghc/lib/concurrent/Channel.lhs 8 additions, 25 deletionsghc/lib/concurrent/Channel.lhs
- ghc/lib/ghc/ArrBase.lhs 63 additions, 61 deletionsghc/lib/ghc/ArrBase.lhs
- ghc/lib/ghc/ConcBase.lhs 18 additions, 24 deletionsghc/lib/ghc/ConcBase.lhs
- ghc/lib/ghc/GHCmain.lhs 5 additions, 6 deletionsghc/lib/ghc/GHCmain.lhs
- ghc/lib/ghc/IOBase.lhs 34 additions, 33 deletionsghc/lib/ghc/IOBase.lhs
- ghc/lib/ghc/PackBase.lhs 6 additions, 6 deletionsghc/lib/ghc/PackBase.lhs
- ghc/lib/ghc/STBase.lhs 13 additions, 7 deletionsghc/lib/ghc/STBase.lhs
- ghc/lib/ghc/UnsafeST.lhs 4 additions, 4 deletionsghc/lib/ghc/UnsafeST.lhs
- ghc/lib/glaExts/Foreign.lhs 8 additions, 8 deletionsghc/lib/glaExts/Foreign.lhs
- ghc/lib/glaExts/ST.lhs 7 additions, 35 deletionsghc/lib/glaExts/ST.lhs
- ghc/lib/required/Directory.lhs 7 additions, 5 deletionsghc/lib/required/Directory.lhs
Loading
Please register or sign in to comment