Module Spicey.GenerationHelper

Summary of exported operations:

lowerFirst :: String -> String   
upperFirst :: String -> String   
dbconn :: String -> (String,String)   
Converts a string into a qualified name of the module "Database.CDBI.Connection".
html :: String -> (String,String)   
Converts a string into a qualified name of the module "HTML.Base".
spiceyModule :: String   
authenticationModule :: String   
authorizationModule :: String   
globalModule :: String -> (String,String)   
Converts a name into a qualified name of the module "Global".
htmlModule :: String -> (String,String)   
Converts a name into a qualified name of the module "HTML.Base".
sessionModule :: String -> (String,String)   
Converts a name into a qualified name of the module "HTML.Session".
storageModule :: String -> (String,String)   
Converts a name into a qualified name of the module "Config.Storage".
wuiModule :: String -> (String,String)   
Converts a name into a qualified name of the module "HTML.WUI".
sessionInfoModule :: String   
userSessionInfoType :: CTypeExpr   
dataModuleName :: String   
mappingModuleName :: String   
entitiesToHtmlModule :: String -> String   
Name of EntitiesToHtml module.
bootstrapModule :: String   
hrefButtonName :: (String,String)   
hrefSmallButtonName :: (String,String)   
relatedRelation :: String -> Relationship -> String   
relationshipsForEntityName :: String -> [Relationship] -> [Relationship]   
isGenerated :: Entity -> Bool   
notPKey :: Attribute -> Bool   
notKey :: Attribute -> Bool   
isRelevantForEntity :: Entity -> [Attribute] -> Bool   
oneToOne :: Entity -> [Relationship] -> [String]   
manyToOne :: Entity -> [Relationship] -> [String]   
manyToMany :: [Entity] -> Entity -> [String]   
linkTableName :: String -> String -> [Entity] -> String   
controllerType :: CTypeExpr   
The standard type of new and list controllers.
controllerModuleName :: String -> String   
newEntityTypeName :: String -> (String,String)   
The name of the type synonym for a "new entity" tuple.
controllerFormName :: String -> String -> (String,String)   
The name of the controller form for a given entity and form type.
controllerStoreName :: String -> String -> (String,String)   
The name of the controller store for a given entity and store type.
controllerFunctionName :: String -> String -> (String,String)   
The name of the controller function for a given entity and controller functionality.
transFunctionName :: String -> String -> (String,String)   
The name of the transaction function for a given entity and transaction functionality.
viewModuleName :: String -> String   
viewFunctionName :: String -> String -> (String,String)   
viewBlockType :: CTypeExpr   
The type of view blocks, i.e., [BaseHtml].
withHTMLContext :: CTypeExpr -> CQualTypeExpr   
htmlTVar :: CTypeExpr   
attrType :: Attribute -> CTypeExpr   
attrDefaultValues :: CExpr -> [Attribute] -> [CExpr]   
Generates Curry expressions representing default values.
domainDefaultValue :: CExpr -> Domain -> CExpr   
Generates Curry expressions representing a default values for a given domain.
isStringDom :: Domain -> Bool   
hasDateAttribute :: [Attribute] -> Bool   
combinator :: Int -> (String,String)   
attrWidgets :: [Attribute] -> [CExpr]   
widgetFor :: Domain -> Bool -> CExpr   
showQName :: (String,String) -> String   

Exported operations:

lowerFirst :: String -> String   

upperFirst :: String -> String   

dbconn :: String -> (String,String)   

Converts a string into a qualified name of the module "Database.CDBI.Connection".

Further infos:
  • solution complete, i.e., able to compute all solutions

html :: String -> (String,String)   

Converts a string into a qualified name of the module "HTML.Base".

Further infos:
  • solution complete, i.e., able to compute all solutions

spiceyModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

authenticationModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

authorizationModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

globalModule :: String -> (String,String)   

Converts a name into a qualified name of the module "Global".

Further infos:
  • solution complete, i.e., able to compute all solutions

htmlModule :: String -> (String,String)   

Converts a name into a qualified name of the module "HTML.Base".

Further infos:
  • solution complete, i.e., able to compute all solutions

sessionModule :: String -> (String,String)   

Converts a name into a qualified name of the module "HTML.Session".

Further infos:
  • solution complete, i.e., able to compute all solutions

storageModule :: String -> (String,String)   

Converts a name into a qualified name of the module "Config.Storage".

Further infos:
  • solution complete, i.e., able to compute all solutions

wuiModule :: String -> (String,String)   

Converts a name into a qualified name of the module "HTML.WUI".

Further infos:
  • solution complete, i.e., able to compute all solutions

sessionInfoModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

userSessionInfoType :: CTypeExpr   

Further infos:
  • solution complete, i.e., able to compute all solutions

dataModuleName :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

mappingModuleName :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

entitiesToHtmlModule :: String -> String   

Name of EntitiesToHtml module.

Further infos:
  • solution complete, i.e., able to compute all solutions

bootstrapModule :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

hrefButtonName :: (String,String)   

Further infos:
  • solution complete, i.e., able to compute all solutions

hrefSmallButtonName :: (String,String)   

Further infos:
  • solution complete, i.e., able to compute all solutions

relatedRelation :: String -> Relationship -> String   

Further infos:
  • partially defined

isGenerated :: Entity -> Bool   

notPKey :: Attribute -> Bool   

notKey :: Attribute -> Bool   

isRelevantForEntity :: Entity -> [Attribute] -> Bool   

oneToOne :: Entity -> [Relationship] -> [String]   

manyToOne :: Entity -> [Relationship] -> [String]   

manyToMany :: [Entity] -> Entity -> [String]   

linkTableName :: String -> String -> [Entity] -> String   

controllerType :: CTypeExpr   

The standard type of new and list controllers.

Further infos:
  • solution complete, i.e., able to compute all solutions

controllerModuleName :: String -> String   

Further infos:
  • solution complete, i.e., able to compute all solutions

newEntityTypeName :: String -> (String,String)   

The name of the type synonym for a "new entity" tuple.

Further infos:
  • solution complete, i.e., able to compute all solutions

controllerFormName :: String -> String -> (String,String)   

The name of the controller form for a given entity and form type.

Further infos:
  • solution complete, i.e., able to compute all solutions

controllerStoreName :: String -> String -> (String,String)   

The name of the controller store for a given entity and store type.

Further infos:
  • solution complete, i.e., able to compute all solutions

controllerFunctionName :: String -> String -> (String,String)   

The name of the controller function for a given entity and controller functionality.

Further infos:
  • solution complete, i.e., able to compute all solutions

transFunctionName :: String -> String -> (String,String)   

The name of the transaction function for a given entity and transaction functionality.

Further infos:
  • solution complete, i.e., able to compute all solutions

viewModuleName :: String -> String   

Further infos:
  • solution complete, i.e., able to compute all solutions

viewFunctionName :: String -> String -> (String,String)   

Further infos:
  • solution complete, i.e., able to compute all solutions

viewBlockType :: CTypeExpr   

The type of view blocks, i.e., [BaseHtml].

Further infos:
  • solution complete, i.e., able to compute all solutions

withHTMLContext :: CTypeExpr -> CQualTypeExpr   

Further infos:
  • solution complete, i.e., able to compute all solutions

htmlTVar :: CTypeExpr   

Further infos:
  • solution complete, i.e., able to compute all solutions

attrDefaultValues :: CExpr -> [Attribute] -> [CExpr]   

Generates Curry expressions representing default values. The first argument contains an expression that is used for ClockTime attributes (it is set to the current time as a default value).

domainDefaultValue :: CExpr -> Domain -> CExpr   

Generates Curry expressions representing a default values for a given domain. The first argument contains an expression that is used for ClockTime attributes (it is set to the current time as a default value).

isStringDom :: Domain -> Bool   

hasDateAttribute :: [Attribute] -> Bool   

combinator :: Int -> (String,String)   

attrWidgets :: [Attribute] -> [CExpr]   

widgetFor :: Domain -> Bool -> CExpr   

showQName :: (String,String) -> String   

Further infos:
  • solution complete, i.e., able to compute all solutions