encoding-0.8.5: 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 # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink StrictSinkE Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink StrictSink Source # 
Instance details

Defined in Data.Encoding.ByteSink

ByteSink PutME 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

ByteSink (ReaderT Handle IO) Source # 
Instance details

Defined in Data.Encoding.ByteSink

newtype PutME a Source #

Constructors

PutME (Either EncodingException (PutM (), a)) 
Instances
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 #

fail :: String -> 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 #

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 #

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
Monad StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

Functor StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

Applicative 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