packed-data-0.1.0.3
Safe HaskellNone
LanguageHaskell2010

Data.Packed.TH.Utils

Synopsis

Documentation

type Tag = Word8 Source #

Byte in a Packed value to identify which data constructor is serialised

sanitizeConName :: Name -> String Source #

Sanitize constructor name so that it can be used as a symbol name

getBranchesTyList :: Name -> [PackingFlag] -> Q [[Type]] Source #

for a given type, and the packing flags, gives back the list of types for each branch

 getBranchesTyList ''Tree [InsertFieldSize]

 > [[FieldSize, Int], [FieldSize, Tree a, FieldSize, Tree a]]