napkin-0.5.14
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Spec.Yaml.Types

Documentation

data YamlArgumentType #

Instances

Instances details
FromJSON YamlArgumentType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Generic YamlArgumentType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Associated Types

type Rep YamlArgumentType :: Type -> Type #

Show YamlArgumentType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Eq YamlArgumentType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

type Rep YamlArgumentType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

type Rep YamlArgumentType = D1 ('MetaData "YamlArgumentType" "Napkin.Spec.Yaml.Types" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "YamlArgumentOptional" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "YamlArgumentRequired" 'PrefixI 'False) (U1 :: Type -> Type))

data HaskellPackageType #

Instances

Instances details
FromJSON HaskellPackageType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Generic HaskellPackageType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Associated Types

type Rep HaskellPackageType :: Type -> Type #

Show HaskellPackageType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Eq HaskellPackageType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

type Rep HaskellPackageType # 
Instance details

Defined in Napkin.Spec.Yaml.Types

type Rep HaskellPackageType = D1 ('MetaData "HaskellPackageType" "Napkin.Spec.Yaml.Types" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "HaskellPackageHpack" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "HaskellPackageCabal" 'PrefixI 'False) (U1 :: Type -> Type))

data YamlSpec b #

Constructors

YamlSpec 

Fields

Instances

Instances details
(ToDbBackend b, Typeable b, FromJSON (DbBackendOptions b), Default (BackendTableMeta b), Default (DbBackendOptions b), BackendMetaConstraints b, ReifiesBackend b, SqlConcat b) => FromJSON (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Generic (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Associated Types

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

Methods

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

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

(Show (DbBackendOptions b), Show (BackendTableMeta b), Typeable b) => Show (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Methods

showsPrec :: Int -> YamlSpec b -> ShowS #

show :: YamlSpec b -> String #

showList :: [YamlSpec b] -> ShowS #

(Eq (DbBackendOptions b), Eq (BackendTableMeta b), Typeable b) => Eq (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

Methods

(==) :: YamlSpec b -> YamlSpec b -> Bool #

(/=) :: YamlSpec b -> YamlSpec b -> Bool #

type Rep (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

type Rep (YamlSpec b) = D1 ('MetaData "YamlSpec" "Napkin.Spec.Yaml.Types" "napkin-0.5.14-JrXUGmKUOt9J0meJSj0Kh4" 'False) (C1 ('MetaCons "YamlSpec" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "_yamlSpec_appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName) :*: S1 ('MetaSel ('Just "_yamlSpec_sqlFolder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :*: (S1 ('MetaSel ('Just "_yamlSpec_connectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConnectionString) :*: S1 ('MetaSel ('Just "_yamlSpec_metadataConnectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ConnectionString)))) :*: ((S1 ('MetaSel ('Just "_yamlSpec_tableSpecs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SpecTableName (YamlTableSpec b))) :*: S1 ('MetaSel ('Just "_yamlSpec_backend") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DbBackendOptions b))) :*: (S1 ('MetaSel ('Just "_yamlSpec_parserDialect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SQLDialect) :*: (S1 ('MetaSel ('Just "_yamlSpec_specPreprocessors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [YamlPreprocessor b]) :*: S1 ('MetaSel ('Just "_yamlSpec_validator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed CustomValidator ModuleFunction))))))) :*: (((S1 ('MetaSel ('Just "_yamlSpec_haskellPackage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe HaskellPackage)) :*: S1 ('MetaSel ('Just "_yamlSpec_haskellFolders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set FilePath))) :*: (S1 ('MetaSel ('Just "_yamlSpec_extraHaskellDependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set Package)) :*: S1 ('MetaSel ('Just "_yamlSpec_defaultHaskellLanguageExtensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set YamlHaskellExtension)))) :*: ((S1 ('MetaSel ('Just "_yamlSpec_extraHaskellModules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Module]) :*: S1 ('MetaSel ('Just "_yamlSpec_haskellSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed (Spec b ()) ModuleFunction)))) :*: (S1 ('MetaSel ('Just "_yamlSpec_functionMacros") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed ExternMacros ModuleFunction))) :*: (S1 ('MetaSel ('Just "_yamlSpec_arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text YamlArgument)) :*: S1 ('MetaSel ('Just "_yamlSpec_externalTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text]))))))))

dbBackend :: forall b. ToDbBackend b => YamlSpec b -> DbBackend #

Orphan instances