| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
YesodDsl.AST
Documentation
Constructors
| Module | |
Fields
| |
moduleName :: Module -> String Source
Constructors
| Import | |
Fields | |
type EntityName = String Source
type FunctionName = String Source
Constructors
| Unique | |
Fields
| |
type VariableName = String Source
Constructors
| InnerJoin | |
| CrossJoin | |
| LeftOuterJoin | |
| RightOuterJoin | |
| FullOuterJoin |
isOuterJoin :: JoinType -> Bool Source
type MaybeLevel = Int Source
type EntityRef = Either EntityName Entity Source
Constructors
type UseParamFlag = Bool Source
type IfFilterParams = (ParamName, [Join], BoolExpr, UseParamFlag) Source
sqAliases :: SelectQuery -> Map VariableName (Entity, MaybeFlag) Source
data SelectField Source
Constructors
| SelectAllFields VariableRef | |
| SelectField VariableRef FieldName (Maybe VariableName) | |
| SelectIdField VariableRef (Maybe VariableName) | |
| SelectValExpr ValExpr VariableName |
Instances
Constructors
| Join | |
Fields
| |
type FieldRefMapping = (ParamName, FieldRef, Maybe FunctionName) Source
data CheckmarkValue Source
Constructors
| Handler | |
Fields
| |
Constructors
| Entity | |
Fields
| |
routePathParams :: Route -> [PathPiece] Source
isPathParam :: PathPiece -> Bool Source
handlerName :: Route -> Handler -> String Source
Constructors
| PathText String | |
| PathId Location EntityName |
entityFieldByName :: Entity -> FieldName -> Field Source
Constructors
| Class | |
Fields
| |
type DefaultValue = String Source
type IsListFlag = Bool Source
data FieldContent Source
Constructors
| NormalField FieldType | |
| EntityField EntityName | |
| EnumField EnumName |
Instances
Constructors
| Field | |
Fields
| |
fieldInternal :: Field -> Bool Source
fieldJsonName :: Field -> FieldName Source
data FieldOption Source
Constructors
| FieldCheck FunctionName | |
| FieldDefault FieldValue | |
| FieldColumnName FieldName | |
| FieldJsonName FieldName | |
| FieldInternal |
Instances
data FieldValue Source
Constructors
| StringValue String | |
| IntValue Int | |
| FloatValue Double | |
| BoolValue Bool | |
| NothingValue | |
| CheckmarkValue CheckmarkValue | |
| EnumFieldValue EnumName EnumValue | |
| EmptyList |
Instances
fieldValueToHs :: FieldValue -> String Source
fieldDefault :: Field -> Maybe FieldValue Source
fieldColumnName :: Field -> Maybe FieldName Source
fieldChecks :: Field -> [FunctionName] Source
lowerFirst :: String -> String Source
upperFirst :: String -> String Source