napkin-0.5.12
Safe HaskellNone
LanguageHaskell2010

Napkin.Run.Effects.Interpreters.FakeLocal

Description

A SqlBackend interpreter that performs a minimal amount of table state management to facilitate dry runs and trivial unwrapping of SqlBackend effects.

It produces a report of used depedencies, but this is not intended for use in the Spec system for figuring out dependencies. User's forced/added dependencies would not show up here, for example. This is meant more for dry runs and simulations.

Synopsis

Documentation

data IState #

Constructors

IState 

Fields

Instances

Instances details
Eq IState # 
Instance details

Defined in Napkin.Run.Effects.Interpreters.FakeLocal

Methods

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

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

Show IState # 
Instance details

Defined in Napkin.Run.Effects.Interpreters.FakeLocal

createReference :: Member (State IState) r => Ref Table -> Sem r () #

Simulate creation of a table

useDependency :: (Member (State IState) r, Member (Reader HiddenDependencies) r) => Ref Table -> Sem r () #

Simulate use of a table

newtype TargetExists #

Constructors

TargetExists Bool 

runExternalCreateFakeSuccess :: forall effs a. Members [State IState, Input (Transformed TargetName)] effs => Sem (ExternalCreate ': effs) a -> Sem effs a #