| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Encoding.ByteSink
Contents
Documentation
class (Monad m, Throws EncodingException m) => ByteSink (m :: Type -> Type) where #
Minimal complete definition
Methods
pushWord16be :: Word16 -> m () #
pushWord16le :: Word16 -> m () #
pushWord32be :: Word32 -> m () #
pushWord32le :: Word32 -> m () #
pushWord64be :: Word64 -> m () #
pushWord64le :: Word64 -> m () #
Instances
| ByteSink PutM # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> PutM () # pushWord16be :: Word16 -> PutM () # pushWord16le :: Word16 -> PutM () # pushWord32be :: Word32 -> PutM () # pushWord32le :: Word32 -> PutM () # pushWord64be :: Word64 -> PutM () # pushWord64le :: Word64 -> PutM () # | |
| ByteSink PutME # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> PutME () # pushWord16be :: Word16 -> PutME () # pushWord16le :: Word16 -> PutME () # pushWord32be :: Word32 -> PutME () # pushWord32le :: Word32 -> PutME () # pushWord64be :: Word64 -> PutME () # pushWord64le :: Word64 -> PutME () # | |
| ByteSink StrictSink # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> StrictSink () # pushWord16be :: Word16 -> StrictSink () # pushWord16le :: Word16 -> StrictSink () # pushWord32be :: Word32 -> StrictSink () # pushWord32le :: Word32 -> StrictSink () # pushWord64be :: Word64 -> StrictSink () # pushWord64le :: Word64 -> StrictSink () # | |
| ByteSink StrictSinkE # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> StrictSinkE () # pushWord16be :: Word16 -> StrictSinkE () # pushWord16le :: Word16 -> StrictSinkE () # pushWord32be :: Word32 -> StrictSinkE () # pushWord32le :: Word32 -> StrictSinkE () # pushWord64be :: Word64 -> StrictSinkE () # pushWord64le :: Word64 -> StrictSinkE () # | |
| ByteSink StrictSinkExplicit # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> StrictSinkExplicit () # pushWord16be :: Word16 -> StrictSinkExplicit () # pushWord16le :: Word16 -> StrictSinkExplicit () # pushWord32be :: Word32 -> StrictSinkExplicit () # pushWord32le :: Word32 -> StrictSinkExplicit () # pushWord64be :: Word64 -> StrictSinkExplicit () # pushWord64le :: Word64 -> StrictSinkExplicit () # | |
| ByteSink (ReaderT Handle IO) # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> ReaderT Handle IO () # pushWord16be :: Word16 -> ReaderT Handle IO () # pushWord16le :: Word16 -> ReaderT Handle IO () # pushWord32be :: Word32 -> ReaderT Handle IO () # pushWord32le :: Word32 -> ReaderT Handle IO () # pushWord64be :: Word64 -> ReaderT Handle IO () # pushWord64le :: Word64 -> ReaderT Handle IO () # | |
| (Monad m, Throws EncodingException m) => ByteSink (StateT (Seq Char) m) # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> StateT (Seq Char) m () # pushWord16be :: Word16 -> StateT (Seq Char) m () # pushWord16le :: Word16 -> StateT (Seq Char) m () # pushWord32be :: Word32 -> StateT (Seq Char) m () # pushWord32le :: Word32 -> StateT (Seq Char) m () # pushWord64be :: Word64 -> StateT (Seq Char) m () # pushWord64le :: Word64 -> StateT (Seq Char) m () # | |
Constructors
| PutME (Either EncodingException (PutM (), a)) |
Instances
| ByteSink PutME # | |
Defined in Data.Encoding.ByteSink Methods pushWord8 :: Word8 -> PutME () # pushWord16be :: Word16 -> PutME () # pushWord16le :: Word16 -> PutME () # pushWord32be :: Word32 -> PutME () # pushWord32le :: Word32 -> PutME () # pushWord64be :: Word64 -> PutME () # pushWord64le :: Word64 -> PutME () # | |
| Applicative PutME # | |
| Functor PutME # | |
| Monad PutME # | |
| Throws EncodingException PutME # | |
Defined in Data.Encoding.ByteSink Methods throwException :: EncodingException -> PutME a # | |
newtype StrictSink a #
Constructors
| StrictS (Ptr Word8 -> Int -> Int -> IO (a, Ptr Word8, Int, Int)) |
Instances
newtype StrictSinkE a #
Constructors
| StrictSinkE (StrictSink (Either EncodingException a)) |
Instances
createStrictWithLen :: StrictSink a -> Int -> (a, ByteString) #
createStrict :: StrictSink a -> (a, ByteString) #
newtype StrictSinkExplicit a #
Constructors
| StrictSinkExplicit (StrictSink (Either EncodingException a)) |
Instances
Orphan instances
| Throws EncodingException PutM # | |
Methods throwException :: EncodingException -> PutM a # | |