haskus-binary-1.5: Haskus binary format manipulation

Safe HaskellNone
LanguageHaskell2010

Haskus.Binary.Serialize.Size

Synopsis

Documentation

newtype GetSize a Source #

Constructors

GetSize (State Word a) 
Instances
Monad GetSize Source # 
Instance details

Defined in Haskus.Binary.Serialize.Size

Methods

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

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

return :: a -> GetSize a #

fail :: String -> GetSize a #

Functor GetSize Source # 
Instance details

Defined in Haskus.Binary.Serialize.Size

Methods

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

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

Applicative GetSize Source # 
Instance details

Defined in Haskus.Binary.Serialize.Size

Methods

pure :: a -> GetSize a #

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

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

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

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

PutMonad GetSize Source # 
Instance details

Defined in Haskus.Binary.Serialize.Size

runGetSize :: GetSize a -> Word Source #

Get the total size