-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Type-level serialization of type constructors -- -- Any type-spine-enabled type constructor can be converted to a -- unique type-digits type-level numeral. @package type-cereal @version 0.1 -- | Type-level serialization (i.e. type -> type-digit -- type-level numeral). module Type.Serialize.Base -- | Serialize maps a type to its unique type-level serialization. -- | Encode uses the cereal package serializer to encode the value -- and then uses type-digits to reflect it as a type-level -- numeral. encode :: Serialize a => a -> Type -- | Generates the Serialize instance corresponding to the -- serialization of the type constructor's globally unique name (i.e. -- TH's NameG). serializeType :: Name -> Q [Dec] -- | serializeType can result in very large types, so we prefer -- the data-hash hash of the NameG's serialization. serializeTypeAsHash :: Name -> Q [Dec] -- | Type-level serialization for the basic types (Bool, Char, Either, -- etc.) as well as the type-spine default case for -- type-applications. module Type.Serialize