[project @ 2000-06-13 15:35:29 by simonm]
authorsimonm <unknown>
Tue, 13 Jun 2000 15:35:29 +0000 (15:35 +0000)
committersimonm <unknown>
Tue, 13 Jun 2000 15:35:29 +0000 (15:35 +0000)
commit901a71dff0caf37d3506f9b1ac78db5f66497d2f
tree5d9b7e6b4ebd8405e54729d4167370066ce98920
parentb76a58ad69739031015e5494fcd731bbe1a1bdf4
[project @ 2000-06-13 15:35:29 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.
ghc/driver/mangler/ghc-asm.lprl