Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data UsersMixin f = Address {}
- type Users = UsersMixin Identity
- type Sess conn st = Session conn Users st
- data Db f = Db {
- session :: f (TableEntity (SessionT UsersMixin))
- db :: DatabaseSettings be Db
- patch :: Pool ReadOnlyConn -> Pool ReadWriteConn -> SpockCfg conn Users st -> SpockCfg conn Users st
Documentation
data UsersMixin f Source #
Some sample user info
Instances
type Users = UsersMixin Identity Source #
Concrete type for users
Beam database definition to hold our session
Db | |
|
Instances
Database be Db Source # | |
Generic (Db f) Source # | |
type Rep (Db f) Source # | |
Defined in TsWeb.Tables.Session.Test type Rep (Db f) = D1 (MetaData "Db" "TsWeb.Tables.Session.Test" "tsweb-0.1.0.0-LWBh5ZDtCK97War1o0evkf" False) (C1 (MetaCons "Db" PrefixI True) (S1 (MetaSel (Just "session") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f (TableEntity (SessionT UsersMixin)))))) |
db :: DatabaseSettings be Db Source #
Beam database instance
patch :: Pool ReadOnlyConn -> Pool ReadWriteConn -> SpockCfg conn Users st -> SpockCfg conn Users st Source #
Sample of patch to be sure that all the types work enough to make a spock config wrapper