describe-0.3.0.1: Combinators for describing binary data structures

Safe HaskellNone
LanguageHaskell2010

Data.Serialize.Describe.Combinators.FList

Synopsis

Documentation

newtype FList (n :: Nat) a Source #

A type level wrapper around a fixed-length list combinator, with similar semantics to FText. The list element must be Nullable, meaning that it must have default value that can be used for padding the list if need be.

Constructors

FList 

Fields

Instances
Show a => Show (FList n a) Source # 
Instance details

Defined in Data.Serialize.Describe.Combinators.FList

Methods

showsPrec :: Int -> FList n a -> ShowS #

show :: FList n a -> String #

showList :: [FList n a] -> ShowS #

(KnownNat n, Nullable a, Describe a) => Describe (FList n a) Source # 
Instance details

Defined in Data.Serialize.Describe.Combinators.FList

Methods

describe :: (s -> FList n a) -> Descriptor s (FList n a) Source #

class Nullable a where Source #

Methods

nullVal :: a Source #

Instances
Nullable Word16 Source # 
Instance details

Defined in Data.Serialize.Describe.Combinators.FList

Nullable (Const n a) Source # 
Instance details

Defined in Data.Serialize.Describe.Combinators.FList

Methods

nullVal :: Const n a Source #