| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Persist.Audit.Types
- type PersistModelFile = [PersistModelFilePiece]
- data PersistModelFilePiece
- data Entity = Entity {}
- data EntityChild
- data EntityField = EntityField {}
- data Strictness
- = Strict
- | ExplicitStrict
- | Lazy
- data EntityFieldType = EntityFieldType {}
- data EntityUnique = EntityUnique {}
- data EntityDerive = EntityDerive {}
- data EntityPrimary = EntityPrimary {
- _getEntityPrimeType :: [Text]
- data EntityForeign = EntityForeign {}
- data WhiteSpace = WhiteSpace {}
- data Comment = Comment {
- _getComment :: Text
- data AuditAction
Documentation
type PersistModelFile = [PersistModelFilePiece] Source
A collection of data types with which you can recontruct a Persist Model file | or create an altered version.
data PersistModelFilePiece Source
Top level pieces of a Persist Model file.
A single Persist Model Entity.
Constructors
| Entity | |
Fields
| |
data EntityChild Source
All of the child elements of a Persist Model Entity. | They are all indented in the Model File.
Constructors
Instances
data EntityField Source
A data row from an Entity.
Constructors
| EntityField | |
Fields
| |
Instances
data Strictness Source
Table rows can be strict or lazy
Constructors
| Strict | Persist Model types are strict without any notation |
| ExplicitStrict | "!" can be used to reemphasize that a type is strict |
| Lazy | "~" means that a type is Lazy |
Instances
data EntityFieldType Source
An entity data row's type. If _isEntityFieldTypeList is True than this type is a list.
Constructors
| EntityFieldType | |
data EntityDerive Source
'deriving Eq', 'deriving Show', etc.
Constructors
| EntityDerive | |
Fields | |
Instances
data EntityPrimary Source
'Primary name'
Constructors
| EntityPrimary | |
Fields
| |
Instances
data WhiteSpace Source
Any white spaces that the user might want to maintain when generating Audit Models.
Constructors
| WhiteSpace | |
Fields | |
Instances
Haskell style comments that start with "-- "
Constructors
| Comment | |
Fields
| |
data AuditAction Source
Annotations for each Audit Model to keep track of why it was inserted.