encoding-0.8.2: A library for various character encodings

Safe HaskellSafe
LanguageHaskell98

Data.Encoding.ByteSource

Contents

Documentation

class (Monad m, Throws DecodingException m) => ByteSource m where Source #

Minimal complete definition

sourceEmpty, fetchWord8, fetchAhead

Instances

ByteSource Get Source # 
ByteSource (StateT [Char] (Either DecodingException)) Source # 
ByteSource (StateT [Char] Identity) Source # 
ByteSource (StateT ByteString (Either DecodingException)) Source # 
(Monad m, Throws DecodingException m) => ByteSource (StateT ByteString m) Source # 
ByteSource (ReaderT * Handle IO) Source # 

fetchAheadState :: MonadState s m => m (Maybe a) -> m (Maybe a) Source #

Orphan instances