napkin-spec-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Run.Effects.Types

Synopsis

Documentation

type HookProgram' b a = Sem (TableHookProgramEffects 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 capabilities than specs

data HookSyncOrAsync #

Constructors

HookSync 
HookAsync 

Instances

Instances details
Generic HookSyncOrAsync # 
Instance details

Defined in Napkin.Run.Effects.Types

Associated Types

type Rep HookSyncOrAsync 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep HookSyncOrAsync = D1 ('MetaData "HookSyncOrAsync" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "HookSync" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "HookAsync" 'PrefixI 'False) (U1 :: Type -> Type))
Show HookSyncOrAsync # 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep HookSyncOrAsync # 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep HookSyncOrAsync = D1 ('MetaData "HookSyncOrAsync" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "HookSync" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "HookAsync" 'PrefixI 'False) (U1 :: Type -> Type))

data Hook b #

Constructors

Hook 

Instances

Instances details
Generic (Hook b) # 
Instance details

Defined in Napkin.Run.Effects.Types

Associated Types

type Rep (Hook b) 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep (Hook b) = D1 ('MetaData "Hook" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "Hook" 'PrefixI 'True) (S1 ('MetaSel ('Just "async") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HookSyncOrAsync) :*: S1 ('MetaSel ('Just "hookProgram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HookProgram b))))

Methods

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

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

type Rep (Hook b) # 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep (Hook b) = D1 ('MetaData "Hook" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "Hook" 'PrefixI 'True) (S1 ('MetaSel ('Just "async") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HookSyncOrAsync) :*: S1 ('MetaSel ('Just "hookProgram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HookProgram b))))

pattern AsyncHook :: HookProgram b -> Hook b #

pattern SyncHook :: HookProgram b -> Hook b #

type SpecProgram b = SpecProgram' b () #

type AssertionEffects (b :: k1) = '[Assertion :: k -> Type -> Type] #

type TableEffects b = '[Reader TargetName, RecreateTable b :: (Type -> Type) -> Type -> Type, External :: (Type -> Type) -> Type -> Type, Output TableMemo :: (Type -> Type) -> Type -> Type] ++ Core b #

askQueryRewriterData :: forall a (r :: EffectRow). (Data a, Member (Reader QueryTransformer) r) => Sem r (a -> a) #

summarize :: forall {k} (b :: k). ProgramDependenciesAndQueries b -> DryRunResult b #

data DryRunResult (b :: k) #

Instances

Instances details
Monoid (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Types

Semigroup (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Types

Generic (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Types

Associated Types

type Rep (DryRunResult b) 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep (DryRunResult b) = D1 ('MetaData "DryRunResult" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" '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)))))

Methods

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

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

Show (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Types

Eq (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep (DryRunResult b) # 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep (DryRunResult b) = D1 ('MetaData "DryRunResult" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" '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)))))

data SpecDepsAndQueries (bk :: k) #

Instances

Instances details
Generic (SpecDepsAndQueries bk) # 
Instance details

Defined in Napkin.Run.Effects.Types

Associated Types

type Rep (SpecDepsAndQueries bk) 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep (SpecDepsAndQueries bk) = D1 ('MetaData "SpecDepsAndQueries" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "SpecDepsAndQueries" 'PrefixI 'True) (S1 ('MetaSel ('Just "tablesDepsAndQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(SpecTableName, ProgramAndHooksDependenciesAndQueries bk)]) :*: S1 ('MetaSel ('Just "hooksDepsAndQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Text, DryRunResult bk)])))
type Rep (SpecDepsAndQueries bk) # 
Instance details

Defined in Napkin.Run.Effects.Types

type Rep (SpecDepsAndQueries bk) = D1 ('MetaData "SpecDepsAndQueries" "Napkin.Run.Effects.Types" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "SpecDepsAndQueries" 'PrefixI 'True) (S1 ('MetaSel ('Just "tablesDepsAndQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(SpecTableName, ProgramAndHooksDependenciesAndQueries bk)]) :*: S1 ('MetaSel ('Just "hooksDepsAndQueries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Text, DryRunResult bk)])))