@hackage handle-like0.0.0.7

HandleLike class

A tiny package. It's contain the following class.

class HandleLike h where
    type HandleMonad h
    hlPut :: h -> ByteString -> HandleMonad h ()
    hlGet :: h -> Int -> HandleMonad h ByteString
    hlGetByte :: h -> HandleMonad h Word8
    hlGetLine :: h -> HandleMonad h ByteString
    hlGetContent :: h -> HandleMonad h ByteString
    hlClose :: h -> HandleMonad h ()
    hlError :: h -> ByteString -> HandleMonad h a

Minimal complete difinition: hlPut, hlGet and hlClose.