napkin-0.5.13
Safe HaskellNone
LanguageHaskell2010

Napkin.Spec.Yaml.Types

Documentation

data YamlSpec b #

Constructors

YamlSpec 

Fields

Instances

Instances details
(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 #

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

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 #

(ToDbBackend b, Typeable b, ToJSON (DbBackendOptions b)) => ToJSON (YamlSpec b) # 
Instance details

Defined in Napkin.Spec.Yaml.Types

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

Defined in Napkin.Spec.Yaml.Types

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.13-8705pBGlgyp7AIaYGNE2fM" 'False) (C1 ('MetaCons "YamlSpec" 'PrefixI 'True) (((S1 ('MetaSel ('Just "_yamlSpec_appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe AppName)) :*: (S1 ('MetaSel ('Just "_yamlSpec_sqlFolder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "_yamlSpec_connectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String))) :*: ((S1 ('MetaSel ('Just "_yamlSpec_metadataConnectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ConnectionString)) :*: S1 ('MetaSel ('Just "_yamlSpec_haskellFolder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :*: (S1 ('MetaSel ('Just "_yamlSpec_tableSpecs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (Ref Table) (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_extraHaskellPackages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Package]))) :*: ((S1 ('MetaSel ('Just "_yamlSpec_extraHaskellModules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Module]) :*: S1 ('MetaSel ('Just "_yamlSpec_defaultHaskellLanguageExtensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [YamlHaskellExtension])) :*: (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))))))))

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

Orphan instances