
12 Sep
2007
12 Sep
'07
8:54 p.m.
dav.vire+haskell:
On 9/12/07, VinyleEm
wrote: projects there, some of them being incomplete. Could you please suggest me some project, from which i can learn the State Monad.
xmonad perhaps ?
Yes, I think xmonad is a good example of the standard Haskell approach to server/long running/interactive software in the language. A skin of code runs in either: newtype M = M (StateT State IO) a or newtype M = M (ReaderT Config (StateT State IO)) a deriving (Functor, Monad, MonadState) Is the basic environment these interactive programs run in. -- Don