Safe Haskell | Safe-Inferred |
---|---|
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 [FieldOption] | |
EntityField EntityName | |
EnumField EnumName (Maybe EnumValue) |
Instances
Constructors
Field | |
Fields
|
data FieldValue Source
Constructors
StringValue String | |
IntValue Int | |
FloatValue Double | |
BoolValue Bool | |
NothingValue | |
CheckmarkValue CheckmarkValue | |
EnumFieldValue EnumName EnumValue | |
EmptyList |
Instances
fieldValueToHs :: FieldValue -> String Source
fieldOptions :: Field -> [FieldOption] Source
fieldDefault :: Field -> Maybe FieldValue Source
fieldChecks :: Field -> [FunctionName] Source
lowerFirst :: String -> String Source
upperFirst :: String -> String Source