napkin-0.5.13
Safe HaskellNone
LanguageHaskell2010

Napkin.Run.Effects.Runtime

Description

A module to adapt our effect stack for use in Spec pipelines. Ideally, the Spec machinery would only use this module to access Effects related concerns.

Synopsis

Documentation

data DryRunResult b #

Instances

Instances details
Eq (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Runtime

Generic (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Runtime

Associated Types

type Rep (DryRunResult b) :: Type -> Type #

Methods

from :: DryRunResult b -> Rep (DryRunResult b) x #

to :: Rep (DryRunResult b) x -> DryRunResult b #

Semigroup (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Runtime

Monoid (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Runtime

type Rep (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Runtime

type Rep (DryRunResult b) = D1 ('MetaData "DryRunResult" "Napkin.Run.Effects.Runtime" "napkin-0.5.13-8705pBGlgyp7AIaYGNE2fM" 'False) (C1 ('MetaCons "DryRunResult" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Dependencies) :*: S1 ('MetaSel ('Just "artifacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Artifacts)) :*: (S1 ('MetaSel ('Just "queries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DumpItem b]) :*: (S1 ('MetaSel ('Just "loadedSqlQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(FilePath, Query)]) :*: S1 ('MetaSel ('Just "assertions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AssertionLog)))))

runProgramReal :: forall m b a ret. (SqlWriteIO m b a, SqlReadIO m b a, ExternalCreateIO m, TemplateIO m b, m ~ ComboT IO, RunBackendEffect b) => RuntimeEnv -> InterpretedSpecEnvironment -> BackendConn b -> Ref Table -> SpecProgram' b ret -> m (Either NapkinEffectError ret) #

Actually executes the given program

runSqlReal :: forall b r a m. (Members [Embed m, FatalError, Log, Reader QueryTransformer, Output ExtraDependencies] r, SqlReadIO m b a, SqlWriteIO m b a, TemplateIO m b) => BackendConn b -> RuntimeEnv -> Sem (ExternalCreate ': (Template ': (SqlWrite b ': (SqlRead b ': r)))) a -> Sem r a #

runSqlParsing :: forall b r m a. (ToDbBackend b, TemplateIO m b, Members [Embed m, SqlWrite b, Output ExtraDependencies, SqlRead b, Log] r) => RuntimeEnv -> ExternMacros -> SQLDialect -> Maybe (Sem (SqlParse ': (SqlRender ': (Reader SQLDialect ': r))) a -> Sem (SqlParse ': (SqlRender ': (Reader SQLDialect ': r))) a) -> Sem (LoadQuery ': (LocalFile ': (Template ': (SqlParse ': (SqlRender ': (Reader SQLDialect ': r)))))) a -> Sem r a #

runCoreFake :: (Member (Embed m) r, MonadIO m) => Sem (Input RandomToken ': (Time ': (Log ': r))) a -> Sem r a #

runCoreReal :: (Member (Embed m) r, MonadIO m, Katip m) => LogItem -> Sem (Input RandomToken ': (Time ': (Log ': r))) a -> Sem r a #