encoding-0.8.10: A library for various character encodings
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Encoding.ByteSink

Documentation

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

Minimal complete definition

pushWord8

Instances

Instances details
ByteSink PutM Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink PutME Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink StrictSink Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink StrictSinkE Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink (ReaderT Handle IO) Source # 
Instance details

Defined in Data.Encoding.ByteSink

(Monad m, Throws EncodingException m) => ByteSink (StateT (Seq Char) m) Source # 
Instance details

Defined in Data.Encoding.ByteSink

newtype PutME a Source #

Constructors

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

Instances

Instances details
Applicative PutME Source # 
Instance details

Defined in Data.Encoding.ByteSink

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 #

Functor PutME Source # 
Instance details

Defined in Data.Encoding.ByteSink

Methods

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

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

Monad PutME Source # 
Instance details

Defined in Data.Encoding.ByteSink

Methods

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

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

return :: a -> PutME a #

ByteSink PutME Source # 
Instance details

Defined in Data.Encoding.ByteSink

Throws EncodingException PutME Source # 
Instance details

Defined in Data.Encoding.ByteSink

newtype StrictSink a Source #

Constructors

StrictS (Ptr Word8 -> Int -> Int -> IO (a, Ptr Word8, Int, Int)) 

newtype StrictSinkE a Source #

newtype StrictSinkExplicit a Source #

Instances

Instances details
Applicative StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

Functor StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

Monad StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

Throws EncodingException StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

Orphan instances