dahdit-0.1.3: Binary parsing and serialization with integrated size
Safe HaskellSafe-Inferred
LanguageHaskell2010

Dahdit.Free

Documentation

data GetStaticSeqF a where Source #

Constructors

GetStaticSeqF :: StaticByteSized z => !ElementCount -> Get z -> (Seq z -> a) -> GetStaticSeqF a 

Instances

Instances details
Functor GetStaticSeqF Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> GetStaticSeqF a -> GetStaticSeqF b #

(<$) :: a -> GetStaticSeqF b -> GetStaticSeqF a #

data GetStaticArrayF a where Source #

Constructors

GetStaticArrayF :: (StaticByteSized z, Prim z) => !ElementCount -> Proxy z -> (PrimArray z -> a) -> GetStaticArrayF a 

Instances

Instances details
Functor GetStaticArrayF Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> GetStaticArrayF a -> GetStaticArrayF b #

(<$) :: a -> GetStaticArrayF b -> GetStaticArrayF a #

data GetLookAheadF a where Source #

Constructors

GetLookAheadF :: Get z -> (z -> a) -> GetLookAheadF a 

Instances

Instances details
Functor GetLookAheadF Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> GetLookAheadF a -> GetLookAheadF b #

(<$) :: a -> GetLookAheadF b -> GetLookAheadF a #

data GetScopeF a where Source #

Constructors

GetScopeF :: !ScopeMode -> !ByteCount -> Get z -> (z -> a) -> GetScopeF a 

Instances

Instances details
Functor GetScopeF Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> GetScopeF a -> GetScopeF b #

(<$) :: a -> GetScopeF b -> GetScopeF a #

data ScopeMode Source #

Instances

Instances details
Show ScopeMode Source # 
Instance details

Defined in Dahdit.Free

Eq ScopeMode Source # 
Instance details

Defined in Dahdit.Free

newtype Get a Source #

Constructors

Get 

Fields

Instances

Instances details
MonadFail Get Source # 
Instance details

Defined in Dahdit.Free

Methods

fail :: String -> Get a #

Applicative Get Source # 
Instance details

Defined in Dahdit.Free

Methods

pure :: a -> Get a #

(<*>) :: Get (a -> b) -> Get a -> Get b #

liftA2 :: (a -> b -> c) -> Get a -> Get b -> Get c #

(*>) :: Get a -> Get b -> Get b #

(<*) :: Get a -> Get b -> Get a #

Functor Get Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> Get a -> Get b #

(<$) :: a -> Get b -> Get a #

Monad Get Source # 
Instance details

Defined in Dahdit.Free

Methods

(>>=) :: Get a -> (a -> Get b) -> Get b #

(>>) :: Get a -> Get b -> Get b #

return :: a -> Get a #

data PutStaticSeqF a where Source #

Constructors

PutStaticSeqF :: StaticByteSized z => !ElementCount -> !(Maybe z) -> (z -> Put) -> !(Seq z) -> a -> PutStaticSeqF a 

Instances

Instances details
Functor PutStaticSeqF Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> PutStaticSeqF a -> PutStaticSeqF b #

(<$) :: a -> PutStaticSeqF b -> PutStaticSeqF a #

data PutStaticArrayF a where Source #

Constructors

PutStaticArrayF :: (StaticByteSized z, Prim z) => !ElementCount -> !(Maybe z) -> !(PrimArray z) -> a -> PutStaticArrayF a 

Instances

Instances details
Functor PutStaticArrayF Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> PutStaticArrayF a -> PutStaticArrayF b #

(<$) :: a -> PutStaticArrayF b -> PutStaticArrayF a #

data PutStaticHintF a where Source #

Constructors

PutStaticHintF :: !ByteCount -> Put -> a -> PutStaticHintF a 

Instances

Instances details
Functor PutStaticHintF Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> PutStaticHintF a -> PutStaticHintF b #

(<$) :: a -> PutStaticHintF b -> PutStaticHintF a #

newtype PutM a Source #

Constructors

PutM 

Fields

Instances

Instances details
Applicative PutM Source # 
Instance details

Defined in Dahdit.Free

Methods

pure :: a -> PutM a #

(<*>) :: PutM (a -> b) -> PutM a -> PutM b #

liftA2 :: (a -> b -> c) -> PutM a -> PutM b -> PutM c #

(*>) :: PutM a -> PutM b -> PutM b #

(<*) :: PutM a -> PutM b -> PutM a #

Functor PutM Source # 
Instance details

Defined in Dahdit.Free

Methods

fmap :: (a -> b) -> PutM a -> PutM b #

(<$) :: a -> PutM b -> PutM a #

Monad PutM Source # 
Instance details

Defined in Dahdit.Free

Methods

(>>=) :: PutM a -> (a -> PutM b) -> PutM b #

(>>) :: PutM a -> PutM b -> PutM b #

return :: a -> PutM a #

Monoid (PutM ()) Source # 
Instance details

Defined in Dahdit.Free

Methods

mempty :: PutM () #

mappend :: PutM () -> PutM () -> PutM () #

mconcat :: [PutM ()] -> PutM () #

Semigroup (PutM ()) Source # 
Instance details

Defined in Dahdit.Free

Methods

(<>) :: PutM () -> PutM () -> PutM () #

sconcat :: NonEmpty (PutM ()) -> PutM () #

stimes :: Integral b => b -> PutM () -> PutM () #

type Put = PutM () Source #