On Friday 08 Jul 2005 6:21 pm, Olaf Chitil wrote:
> If this were not a
> primitive in the IO monad, how would you define it in Haskell without
> some nasty hacks (a top-level IORef springs to my mind)?
Do you mean using a top-level IORef is a nasty hack, or you refering
to the nasty hack we have t
At 05:01 PM 7/9/2005, Wolfgang Jeltsch wrote:
[..]
Hello,
the idea is to have different monads for I/O on different
resources. A simple
example is to have the two monads WorldIO and FileIO and a type
FileIOHandle.
A file is a part of the world. You have the following
functions:
readChar
OK, thanks for the references. I think I've got a
better handle on what's what. The library documentation mentions the ability to
convert the ST monad into an IO monad. What are the reasons/pluses/minuses of
doing this? (I can see one reason being that you won't have to use monad
transformer
Well, I'm a bit confused about your message, but the commands that you
pasted there are intended to unregister (remove) everything, which
doesn't sound like what you're trying to do.
You probably want "make register", which is what the readme file
recommends for installation.
hope this helps,
-