napkin-0.5.14
Safe HaskellSafe-Inferred
LanguageGHC2021

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
Monoid (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Runtime

Semigroup (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 #

Eq (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.14-JrXUGmKUOt9J0meJSj0Kh4" '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. (AnnotateWriteIO m b, AnnotateReadIO m b, SqlWriteIO m b, SqlReadIO m b, TemplateIO m b, RunBackendEffect b) => RuntimeEnv -> InterpretedSpecEnvironment -> BackendConn b -> Ref Table -> SpecProgram' b a -> m (Either NapkinEffectError a) #

Actually executes the given program

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

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