Hello,

I'am using Hugs 1.3 and have the following example:

import ST
  
change :: ST s ()
change = do
  error "Hello"
 
main = do
 change
 return ()


Starting the example in the interpreter with "runST main" results in "()".
Why was "change" not executed ??
Doing the same with the IO-monad (without runST) works correct (The
expected result is "error ...").


Joachim Schmid

Tested on: Sun-sparc, Hugs Version 1.3

Reply via email to