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.zigans...@gmail.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to