Hi, I'm trying to use the new GHC -main-is flag to compile programs from
files with module names other than Main, but it doesn't seem to be working.
I've tried this under Windows 2000 and Windows XP.
Here's my test program:
[[
-- HelloWorld.hs
-- module HelloWorld where
module Main where
main ::
Hello,
your problem can be solved with StateT:
(warning: untested code)
First we want to execute two independent state threads:
start1 :: Monad m => StateT Int m startOutput1
start1 =
start2 :: Monad m => StateT Bool m startOutput2
start2 =
After this there is a part where we
Hi,
I am still learning about monads. I have a problem
in mind and am wondering whether state monads are
able to solve it. The difficulty is that it would
necessitate the interaction of two state threads
and I'm not sure whether Haskell state monads
allow this. Let me explain what I'm getting a