domaindriven-0.5.0: Batteries included event sourcing and CQRS
Safe HaskellSafe-Inferred
LanguageHaskell2010

DomainDriven.Server.Types

Synopsis

Documentation

data ApiSpec Source #

Constructors

ApiSpec 

Fields

Instances

Instances details
Generic ApiSpec Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ApiSpec :: Type -> Type #

Methods

from :: ApiSpec -> Rep ApiSpec x #

to :: Rep ApiSpec x -> ApiSpec #

Show ApiSpec Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ApiSpec Source # 
Instance details

Defined in DomainDriven.Server.Types

data VarBindings Source #

Constructors

VarBindings 

Fields

Instances

Instances details
Generic VarBindings Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep VarBindings :: Type -> Type #

Show VarBindings Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq VarBindings Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep VarBindings Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep VarBindings = D1 ('MetaData "VarBindings" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "VarBindings" 'PrefixI 'True) ((S1 ('MetaSel ('Just "paramPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :*: (S1 ('MetaSel ('Just "return") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "extra") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TyVarBndr ()]))))

data ApiOptions Source #

Instances

Instances details
Generic ApiOptions Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ApiOptions :: Type -> Type #

Show ApiOptions Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ApiOptions Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ApiOptions = D1 ('MetaData "ApiOptions" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "ApiOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "renameConstructor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (String -> String)) :*: (S1 ('MetaSel ('Just "typenameSeparator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "bodyNameBase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)))))

data Mutability Source #

Constructors

Mutable 
Immutable 

Instances

Instances details
Show Mutability Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq Mutability Source # 
Instance details

Defined in DomainDriven.Server.Types

data ApiPiece Source #

Instances

Instances details
Generic ApiPiece Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ApiPiece :: Type -> Type #

Methods

from :: ApiPiece -> Rep ApiPiece x #

to :: Rep ApiPiece x -> ApiPiece #

Show ApiPiece Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ApiPiece Source # 
Instance details

Defined in DomainDriven.Server.Types

data HandlerSettings Source #

Constructors

HandlerSettings 

Fields

Instances

Instances details
Generic HandlerSettings Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep HandlerSettings :: Type -> Type #

Show HandlerSettings Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq HandlerSettings Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep HandlerSettings Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep HandlerSettings = D1 ('MetaData "HandlerSettings" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "HandlerSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type) :*: S1 ('MetaSel ('Just "verb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type)))

newtype ConstructorName Source #

Constructors

ConstructorName Name 

Instances

Instances details
Generic ConstructorName Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ConstructorName :: Type -> Type #

Show ConstructorName Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq ConstructorName Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ConstructorName Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ConstructorName = D1 ('MetaData "ConstructorName" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'True) (C1 ('MetaCons "ConstructorName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)))

newtype EpReturnType Source #

Constructors

EpReturnType Type 

Instances

Instances details
Generic EpReturnType Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep EpReturnType :: Type -> Type #

Show EpReturnType Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq EpReturnType Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep EpReturnType Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep EpReturnType = D1 ('MetaData "EpReturnType" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'True) (C1 ('MetaCons "EpReturnType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type)))

newtype GadtName Source #

Constructors

GadtName Name 

Instances

Instances details
Generic GadtName Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep GadtName :: Type -> Type #

Methods

from :: GadtName -> Rep GadtName x #

to :: Rep GadtName x -> GadtName #

Show GadtName Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq GadtName Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep GadtName Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep GadtName = D1 ('MetaData "GadtName" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'True) (C1 ('MetaCons "GadtName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)))

newtype GadtType Source #

Constructors

GadtType Type 

Instances

Instances details
Generic GadtType Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep GadtType :: Type -> Type #

Methods

from :: GadtType -> Rep GadtType x #

to :: Rep GadtType x -> GadtType #

Show GadtType Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq GadtType Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep GadtType Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep GadtType = D1 ('MetaData "GadtType" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'True) (C1 ('MetaCons "GadtType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type)))

newtype UrlSegment Source #

Constructors

UrlSegment String 

Instances

Instances details
Generic UrlSegment Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep UrlSegment :: Type -> Type #

Show UrlSegment Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq UrlSegment Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep UrlSegment Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep UrlSegment = D1 ('MetaData "UrlSegment" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'True) (C1 ('MetaCons "UrlSegment" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))

newtype ConstructorArgs Source #

Constructors

ConstructorArgs [(String, Type)] 

Instances

Instances details
Generic ConstructorArgs Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ConstructorArgs :: Type -> Type #

Show ConstructorArgs Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq ConstructorArgs Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ConstructorArgs Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ConstructorArgs = D1 ('MetaData "ConstructorArgs" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'True) (C1 ('MetaCons "ConstructorArgs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(String, Type)])))

newtype Runner Source #

Constructors

Runner Type 

Instances

Instances details
Generic Runner Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep Runner :: Type -> Type #

Methods

from :: Runner -> Rep Runner x #

to :: Rep Runner x -> Runner #

Show Runner Source # 
Instance details

Defined in DomainDriven.Server.Types

Eq Runner Source # 
Instance details

Defined in DomainDriven.Server.Types

Methods

(==) :: Runner -> Runner -> Bool #

(/=) :: Runner -> Runner -> Bool #

type Rep Runner Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep Runner = D1 ('MetaData "Runner" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'True) (C1 ('MetaCons "Runner" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type)))

data ServerInfo Source #

Carries information regarding how the API looks at the place we're currently at.

Constructors

ServerInfo 

Fields

Instances

Instances details
Generic ServerInfo Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ServerInfo :: Type -> Type #

Show ServerInfo Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ServerInfo Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ServerInfo = D1 ('MetaData "ServerInfo" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "ServerInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "baseGadt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GadtName) :*: S1 ('MetaSel ('Just "currentGadt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GadtName)) :*: (S1 ('MetaSel ('Just "parentConstructors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ConstructorName]) :*: (S1 ('MetaSel ('Just "prefixSegments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [UrlSegment]) :*: S1 ('MetaSel ('Just "options") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ApiOptions)))))

data ServerGenState Source #

Instances

Instances details
Generic ServerGenState Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ServerGenState :: Type -> Type #

Show ServerGenState Source # 
Instance details

Defined in DomainDriven.Server.Types

MonadState ServerGenState ServerGenM Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ServerGenState Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ServerGenState = D1 ('MetaData "ServerGenState" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "ServerGenState" 'PrefixI 'True) (S1 ('MetaSel ('Just "info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ServerInfo) :*: S1 ('MetaSel ('Just "usedParamNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set String))))

newtype ServerGenM a Source #

Constructors

ServerGenM 

Instances

Instances details
MonadFail ServerGenM Source # 
Instance details

Defined in DomainDriven.Server.Types

Methods

fail :: String -> ServerGenM a #

Applicative ServerGenM Source # 
Instance details

Defined in DomainDriven.Server.Types

Methods

pure :: a -> ServerGenM a #

(<*>) :: ServerGenM (a -> b) -> ServerGenM a -> ServerGenM b #

liftA2 :: (a -> b -> c) -> ServerGenM a -> ServerGenM b -> ServerGenM c #

(*>) :: ServerGenM a -> ServerGenM b -> ServerGenM b #

(<*) :: ServerGenM a -> ServerGenM b -> ServerGenM a #

Functor ServerGenM Source # 
Instance details

Defined in DomainDriven.Server.Types

Methods

fmap :: (a -> b) -> ServerGenM a -> ServerGenM b #

(<$) :: a -> ServerGenM b -> ServerGenM a #

Monad ServerGenM Source # 
Instance details

Defined in DomainDriven.Server.Types

Methods

(>>=) :: ServerGenM a -> (a -> ServerGenM b) -> ServerGenM b #

(>>) :: ServerGenM a -> ServerGenM b -> ServerGenM b #

return :: a -> ServerGenM a #

MonadState ServerGenState ServerGenM Source # 
Instance details

Defined in DomainDriven.Server.Types

data Pmatch Source #

Constructors

Pmatch 

Instances

Instances details
Generic Pmatch Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep Pmatch :: Type -> Type #

Methods

from :: Pmatch -> Rep Pmatch x #

to :: Rep Pmatch x -> Pmatch #

Show Pmatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep Pmatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep Pmatch = D1 ('MetaData "Pmatch" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "Pmatch" 'PrefixI 'True) (S1 ('MetaSel ('Just "paramPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: (S1 ('MetaSel ('Just "paramName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "paramType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type))))

data ConstructorMatch Source #

Instances

Instances details
Generic ConstructorMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep ConstructorMatch :: Type -> Type #

Show ConstructorMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ConstructorMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep ConstructorMatch = D1 ('MetaData "ConstructorMatch" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "ConstructorMatch" 'PrefixI 'True) ((S1 ('MetaSel ('Just "xParam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "constructorName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :*: (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Pmatch]) :*: S1 ('MetaSel ('Just "finalType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FinalConstructorTypeMatch))))

data SubActionMatch Source #

Instances

Instances details
Generic SubActionMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep SubActionMatch :: Type -> Type #

Show SubActionMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep SubActionMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep SubActionMatch = D1 ('MetaData "SubActionMatch" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "SubActionMatch" 'PrefixI 'True) ((S1 ('MetaSel ('Just "constructorName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Pmatch])) :*: (S1 ('MetaSel ('Just "subActionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "subActionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type))))

data SubActionTypeMatch Source #

Constructors

SubActionTypeMatch 

Instances

Instances details
Generic SubActionTypeMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep SubActionTypeMatch :: Type -> Type #

Show SubActionTypeMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep SubActionTypeMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep SubActionTypeMatch = D1 ('MetaData "SubActionTypeMatch" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "SubActionTypeMatch" 'PrefixI 'False) (U1 :: Type -> Type))

data RequestTypeMatch Source #

Constructors

RequestTypeMatch 

Instances

Instances details
Generic RequestTypeMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

Associated Types

type Rep RequestTypeMatch :: Type -> Type #

Show RequestTypeMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep RequestTypeMatch Source # 
Instance details

Defined in DomainDriven.Server.Types

type Rep RequestTypeMatch = D1 ('MetaData "RequestTypeMatch" "DomainDriven.Server.Types" "domaindriven-0.5.0-DXvek89qD5M1xwQ4V40Syp" 'False) (C1 ('MetaCons "RequestTypeMatch" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type) :*: (S1 ('MetaSel ('Just "contentTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type) :*: S1 ('MetaSel ('Just "verb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type))))