data-accessor-0.2.2.7: Utilities for accessing and manipulating fields of records

Safe HaskellSafe
LanguageHaskell98

Data.Accessor.BinaryRead

Description

Reading records from streams

This is still only for demonstration and might be of not much use and you should not rely on the interface.

Documentation

class C a where Source

Methods

any :: ByteSource source => source a Source

class Monad source => ByteSource source where Source

Methods

readWord8 :: source Word8 Source

Instances

class ByteStream s where Source

Methods

getWord8 :: Monad m => s -> m (Word8, s) Source

Instances

class ByteCompatible byte where Source

Methods

toByte :: byte -> Word8 Source

newtype Parser s r Source

Constructors

Parser 

Fields

runParser :: (r, s) -> Maybe (r, s)
 

field :: (ByteStream s, C a) => T r a -> Parser s r Source

record :: [Parser s r] -> Parser s r Source