Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FixSizeStringStructure :: Nat -> Extends (Structure FixSize)
- utf8Bits :: QuasiQuoter
Documentation
data FixSizeStringStructure :: Nat -> Extends (Structure FixSize) Source #
A type level symbol paired with a type level length, that determines how many bits the representation will use. The resulting structure has exactly that size. Note: That currently multibyte character support is missing.
Instances
type PrettyStructure (FixSizeStringStructure size :: Structure FixSize -> Type) Source # | |
Defined in Data.Type.BitRecords.Structure.String type PrettyStructure (FixSizeStringStructure size :: Structure FixSize -> Type) = "FixSizeStringStructure" <:> (PutNat size <++> PutStr "bits") | |
type GetStructureSize (FixSizeStringStructure size) Source # | |
Defined in Data.Type.BitRecords.Structure.String |
utf8Bits :: QuasiQuoter Source #
Create a FixSizeStringStructure
from a utf-8 string