Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type SpecProgram' b a = Sem (SpecProgramEffects b) a
- type HookProgram' b a = Sem (HookProgramEffects b) a
- type HookProgram b = HookProgram' b ()
- type SpecProgram b = SpecProgram' b ()
- newtype HookProgramWithArgParser b = HookProgramWithArgParser (Object -> Parser (HookProgram b))
- parserlessHook :: HookProgram b -> HookProgramWithArgParser b
- newtype SpecProgramWithArgParser b = SpecProgramWithArgParser (Object -> Parser (SpecProgram b))
- parserlessSpec :: SpecProgram b -> SpecProgramWithArgParser b
- type SpecProgramEffects b = '[RecreateTable b, Output ExtraDependencies, Reader HiddenDependencies, Reader HiddenArtifacts, Reader TargetName, Assertion, ExternalCreate, BackendSpecificEffect b] ++ Core b
- type HookProgramEffects b = '[Assertion, Embed IO, BackendSpecificEffect b] ++ Core b
- type Core b = [FatalError, Input RandomToken, Time, Output LogLine, SqlRender, SqlParse, SqlRead b, SqlWrite b, LocalFile, Template, LoadQuery, Reader QueryTransformer, Input MetaArguments, Reader SQLDialect]
- class RunBackendEffect b where
- runBackendEffectReal :: (Members (Core b) r, Member (Embed IO) r) => BackendConn b -> Sem (BackendSpecificEffect b ': r) a -> Sem r a
- runBackendEffectFake :: (Members (Core b) r, Member (Embed IO) r) => Sem (BackendSpecificEffect b ': r) a -> Sem r a
- askRefRenamer :: Member (Reader QueryTransformer) r => Sem r (Ref Table -> Ref Table)
- askQueryRewriter :: Member (Reader QueryTransformer) r => Sem r (Query -> Query)
- askQueryRewriterData :: forall a r. (Data a, Member (Reader QueryTransformer) r) => Sem r (a -> a)
Documentation
type SpecProgram' b a = Sem (SpecProgramEffects b) a #
type HookProgram' b a = Sem (HookProgramEffects b) a #
Programs packaged up for use in Specs. Intended for use in providing introspectable CustomCreate actions in specs.
type HookProgram b = HookProgram' b () #
Hooks have different cabapilities than specs
type SpecProgram b = SpecProgram' b () #
newtype HookProgramWithArgParser b #
HookProgramWithArgParser (Object -> Parser (HookProgram b)) |
parserlessHook :: HookProgram b -> HookProgramWithArgParser b #
newtype SpecProgramWithArgParser b #
SpecProgramWithArgParser (Object -> Parser (SpecProgram b)) |
parserlessSpec :: SpecProgram b -> SpecProgramWithArgParser b #
type SpecProgramEffects b = '[RecreateTable b, Output ExtraDependencies, Reader HiddenDependencies, Reader HiddenArtifacts, Reader TargetName, Assertion, ExternalCreate, BackendSpecificEffect b] ++ Core b #
type HookProgramEffects b = '[Assertion, Embed IO, BackendSpecificEffect b] ++ Core b #
type Core b = [FatalError, Input RandomToken, Time, Output LogLine, SqlRender, SqlParse, SqlRead b, SqlWrite b, LocalFile, Template, LoadQuery, Reader QueryTransformer, Input MetaArguments, Reader SQLDialect] #
class RunBackendEffect b where #
runBackendEffectReal :: (Members (Core b) r, Member (Embed IO) r) => BackendConn b -> Sem (BackendSpecificEffect b ': r) a -> Sem r a #
default runBackendEffectReal :: (Members (Core b) r, Member (Embed IO) r) => BackendConn b -> Sem (BackendSpecificEffect b ': r) a -> Sem r a #
runBackendEffectFake :: (Members (Core b) r, Member (Embed IO) r) => Sem (BackendSpecificEffect b ': r) a -> Sem r a #
Instances
askRefRenamer :: Member (Reader QueryTransformer) r => Sem r (Ref Table -> Ref Table) #
askQueryRewriter :: Member (Reader QueryTransformer) r => Sem r (Query -> Query) #
askQueryRewriterData :: forall a r. (Data a, Member (Reader QueryTransformer) r) => Sem r (a -> a) #