filepath-crypto-0.1.0.0: Reversable and secure encoding of object ids as filepaths

Safe HaskellNone
LanguageHaskell2010

Data.Binary.SerializationLength.TH

Synopsis

Documentation

hasFixedSerializationLength :: Name -> Integer -> DecsQ Source #

Shorthand for defining instances of HasFixedSerializationLength, morally:

hasFixedSerializationLength typeName byteN = [d|
    instance HasFixedSerializiationLength $(typeName) where
      type SerializationLength $(typeName) = $(byteN)
  |]