encoding-0.8.4: A library for various character encodings

Safe HaskellNone
LanguageHaskell2010

Data.Encoding.ByteSink

Contents

Documentation

class (Monad m, Throws EncodingException m) => ByteSink m where Source #

Minimal complete definition

pushWord8

Instances

ByteSink PutM Source # 
ByteSink StrictSinkExplicit Source # 
ByteSink StrictSinkE Source # 
ByteSink StrictSink Source # 
ByteSink PutME Source # 
(Monad m, Throws EncodingException m) => ByteSink (StateT (Seq Char) m) Source # 
ByteSink (ReaderT * Handle IO) Source # 

newtype PutME a Source #

Constructors

PutME (Either EncodingException (PutM (), a)) 

Instances

Monad PutME Source # 

Methods

(>>=) :: PutME a -> (a -> PutME b) -> PutME b #

(>>) :: PutME a -> PutME b -> PutME b #

return :: a -> PutME a #

fail :: String -> PutME a #

Functor PutME Source # 

Methods

fmap :: (a -> b) -> PutME a -> PutME b #

(<$) :: a -> PutME b -> PutME a #

Applicative PutME Source # 

Methods

pure :: a -> PutME a #

(<*>) :: PutME (a -> b) -> PutME a -> PutME b #

liftA2 :: (a -> b -> c) -> PutME a -> PutME b -> PutME c #

(*>) :: PutME a -> PutME b -> PutME b #

(<*) :: PutME a -> PutME b -> PutME a #

ByteSink PutME Source # 
Throws EncodingException PutME Source # 

newtype StrictSinkExplicit a Source #

Orphan instances