[Haskell] Question for the haskell implementors: Arrays, unsafePerformIO, runST

Taral taralx at gmail.com
Thu Feb 16 00:57:38 EST 2006

On 2/15/06, John Meacham <john at repetae.net> wrote:
> > foreign import primitive "prim_newWorld__" :: forall a . a -> World__
> which will throw away its argument and produce a World__. but since it
> is primtive, the compiler will assume the world it returns might depend
> on its argument. then I could do something like:

GHC uses ST, which uses RealWorld#...

Taral <taralx at gmail.com>
"Computer science is no more about computers than astronomy is about
    -- Edsger Dijkstra

More information about the Haskell mailing list