napkin-runtime
Safe HaskellNone
LanguageGHC2024

Napkin.Spec.Yaml.Interpret

Synopsis

Documentation

data YamlLoadResult b #

Instances

Instances details
Generic (YamlLoadResult b) # 
Instance details

Defined in Napkin.Spec.Yaml.Interpret

Associated Types

type Rep (YamlLoadResult b) 
Instance details

Defined in Napkin.Spec.Yaml.Interpret

type Rep (YamlLoadResult b) = D1 ('MetaData "YamlLoadResult" "Napkin.Spec.Yaml.Interpret" "napkin-runtime-2.0.0-Erk85iQPgMrCSpa03PiHz5" 'False) (C1 ('MetaCons "YamlLoadResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceMaps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 YamlSourceMaps) :*: (S1 ('MetaSel ('Just "yamlSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (YamlSpec b)) :*: S1 ('MetaSel ('Just "rawYaml") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value))))
type Rep (YamlLoadResult b) # 
Instance details

Defined in Napkin.Spec.Yaml.Interpret

type Rep (YamlLoadResult b) = D1 ('MetaData "YamlLoadResult" "Napkin.Spec.Yaml.Interpret" "napkin-runtime-2.0.0-Erk85iQPgMrCSpa03PiHz5" 'False) (C1 ('MetaCons "YamlLoadResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceMaps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 YamlSourceMaps) :*: (S1 ('MetaSel ('Just "yamlSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (YamlSpec b)) :*: S1 ('MetaSel ('Just "rawYaml") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value))))

type YamlLoadAction (m :: k -> Type) (a :: k) = forall b. LoadYamlConstraint b => YamlLoadResult b -> m a #

loadHaskellModules :: forall bk m. MonadIO m => InterpreterInstance -> YamlSpec bk -> m (Either HaskellEvaluationError ()) #

The main entry point interpreting a given YAML spec file as a Spec value ready to run via executeSpec

This function is intended to unroll/interpret as much as possible to get the spec in its final state ready to be actually run.

interpretTable :: forall bk (m :: Type -> Type). (MonadIO m, Typeable bk) => StaticDictionaryLookup bk -> InterpreterInstance -> YamlSourceMaps -> SpecTableName -> YamlTableSpec bk -> ExceptT HaskellEvaluationError m (SpecProgramArguments, Spec bk ()) #

Main entry point for fully interpreting a given table's entry in the YAML file.