Database.Persist.TH
Description
This module provides utilities for creating backends. Regular users do not need to use this module.
Documentation
mkPersist :: [EntityDef] -> Q [Dec]Source
Create data types and appropriate PersistEntity
instances for the given
EntityDef
s. Works well with the persist quasi-quoter.
mkDeleteCascade :: [EntityDef] -> Q [Dec]Source
derivePersistField :: String -> Q [Dec]Source
Automatically creates a valid PersistField
instance for any datatype
that has valid Show
and Read
instances. Can be very convenient for
Enum
types.