[Haskell-cafe] Monad Input/Output and Monad Transformers

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Jul 2 07:43:26 EDT 2009


Hello Maciej,

Thursday, July 2, 2009, 3:31:59 PM, you wrote:

> class (Monad m, Monoid v) => MonadInput v m where
>     -- | Gets an element from input (line of text [with \n], 4096 bytes,
>     --   or something like that). mzero on end
>     getChunk :: m v
> class (Monad m, Monoid v) => MonadOutput v m where
>     -- | Puts an element
>     putChunk :: v -> m ()

how about interact function?

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list