Re: [Haskell] line-based interactive program

2005-07-11 Thread Adrian Hey
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

Re: [Haskell] line-based interactive program

2005-07-11 Thread Peter Achten
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

[Haskell] Re: ST Monad and all that

2005-07-11 Thread Srinivas Nedunuri
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

Re: [Haskell] Using hs-plugins

2005-07-11 Thread Cale Gibbard
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, -