Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module contains data to cofigure database and REST service
- data State = State {}
- data Config = Config {}
- type SessionVal = Maybe SessionId
- type Api ctx = SpockCtxM ctx SqlBackend SessionVal State ()
- type ApiAction ctx a = SpockActionCtx ctx SqlBackend SessionVal State a
- type DBAction ctx a = ActionCtxT ctx (WebStateM SqlBackend SessionVal State) a
Documentation
config data contains port and dbname
type SessionVal = Maybe SessionId Source #
Spock session
type Api ctx = SpockCtxM ctx SqlBackend SessionVal State () Source #
Spock api
type ApiAction ctx a = SpockActionCtx ctx SqlBackend SessionVal State a Source #
Spock API action
type DBAction ctx a = ActionCtxT ctx (WebStateM SqlBackend SessionVal State) a Source #
DBAction