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

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 whereSource

Methods

any :: ByteSource source => source aSource

class Monad source => ByteSource source whereSource

Methods

readWord8 :: source Word8Source

class ByteStream s whereSource

Methods

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

class ByteCompatible byte whereSource

Methods

toByte :: byte -> Word8Source

newtype Parser s r Source

Constructors

Parser 

Fields

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

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

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