mu-schema- Format-independent schemas for serialization
Safe HaskellNone



This module is deprecated. Haskell types corresponding to schema types should be written manually.



generateTypesFromSchema :: Namer -> Name -> Q [Dec] Source #

Generates types to represent each of the types in a given schema. You should call it as: > $(generateTypesFromSchema f 'Schema) where f is a function String -> String which obtains the Haskell name for a type given the name in the schema. The second argument is simply the name of the schema.

type Namer = String -> String Source #

Generate the name from each new Haskell type from the name given in the schema.