servant-auth-token-acid-0.5.4.0: Acid-state backend for servant-auth-token server

Safe HaskellNone
LanguageHaskell2010

Servant.Server.Auth.Token.Acid.Schema

Contents

Synopsis

Documentation

data Model Source #

Holds all data for auth server in acid-state container

newModel :: Model Source #

Defines empty model for new database

class HasModelRead a where Source #

The end user should implement this for his global type

Minimal complete definition

askModel

Methods

askModel :: a -> Model Source #

Instances
HasModelRead Model Source # 
Instance details

Defined in Servant.Server.Auth.Token.Acid.Schema

Methods

askModel :: Model -> Model Source #

class HasModelRead a => HasModelWrite a where Source #

The end user should implement this fot his global type

Minimal complete definition

putModel

Methods

putModel :: a -> Model -> a Source #

Instances
HasModelWrite Model Source # 
Instance details

Defined in Servant.Server.Auth.Token.Acid.Schema

Methods

putModel :: Model -> Model -> Model Source #

acidQueries :: [Name] Source #

List of queries of the backend. Can be used if you want additional queries alongside with the auth ones.

Usage: makeAcidic ''Model (acidQueries ++ [{- your queries herer-}])

makeModelAcidic :: Name -> DecsQ Source #

The end user should inline this TH in his code

asksM :: HasModelRead a => (Model -> b) -> Query a b Source #

deriveQueries :: Name -> DecsQ Source #

Mixin queries to work with auth state

Orphan instances

SafeCopy UserImplId Source # 
Instance details

SafeCopy UserImpl Source # 
Instance details

SafeCopy UserPermId Source # 
Instance details

SafeCopy UserPerm Source # 
Instance details

SafeCopy AuthTokenId Source # 
Instance details

SafeCopy AuthToken Source # 
Instance details

SafeCopy UserRestoreId Source # 
Instance details

SafeCopy UserRestore Source # 
Instance details

SafeCopy UserSingleUseCodeId Source # 
Instance details

SafeCopy UserSingleUseCode Source # 
Instance details

SafeCopy AuthUserGroupId Source # 
Instance details

SafeCopy AuthUserGroup Source # 
Instance details

SafeCopy AuthUserGroupUsersId Source # 
Instance details

SafeCopy AuthUserGroupUsers Source # 
Instance details

SafeCopy AuthUserGroupPermsId Source # 
Instance details

SafeCopy AuthUserGroupPerms Source # 
Instance details

(SafeCopy k, SafeCopy v) => SafeCopy (WithField i k v) Source # 
Instance details