data-accessor-0.2.2.1: 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

Instances

class Monad source => ByteSource source whereSource

Methods

readWord8 :: source Word8Source

Instances

(ByteStream s, Monad m) => ByteSource (StateT s m) 

class ByteStream s whereSource

Methods

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

Instances

ByteCompatible byte => ByteStream [byte] 

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