persistent-audit-0.1.0.1: Parses a Persist Model file and produces Audit Models

Safe HaskellNone
LanguageHaskell2010

Database.Persist.Audit.Types

Synopsis

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 Entity Source

A single Persist Model Entity.

Constructors

Entity 

data EntityField Source

A data row from an Entity.

Constructors

EntityField 

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

data EntityDerive Source

'deriving Eq', 'deriving Show', etc.

Constructors

EntityDerive 

data WhiteSpace Source

Any white spaces that the user might want to maintain when generating Audit Models.

Constructors

WhiteSpace 

Fields

_getWhiteSpace :: Text
 

data Comment Source

Haskell style comments that start with "-- "

Constructors

Comment 

Fields

_getComment :: Text