On Thu, 16 Sep 1999, Lars Lundgren wrote:

[snip]
> myProg:: StateMT IO Int
> myProg = return 5
> 
> main = do n <- runSMT myProg
>         print n
> 

I forgot to show something interesting in my first example, try this
instead:

myProg:: StateMT IO Int
myProg = do lift $ putStrLn "HelloWorld!"   -- a lifted IO value
            return 5                        -- a StateMT value



/Lars L




Reply via email to