Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
data YamlArgumentType #
Instances
FromJSON YamlArgumentType # | |||||
Defined in Napkin.Spec.Yaml.Types parseJSON :: Value -> Parser YamlArgumentType # parseJSONList :: Value -> Parser [YamlArgumentType] # | |||||
Generic YamlArgumentType # | |||||
Defined in Napkin.Spec.Yaml.Types
from :: YamlArgumentType -> Rep YamlArgumentType x # to :: Rep YamlArgumentType x -> YamlArgumentType # | |||||
Show YamlArgumentType # | |||||
Defined in Napkin.Spec.Yaml.Types showsPrec :: Int -> YamlArgumentType -> ShowS # show :: YamlArgumentType -> String # showList :: [YamlArgumentType] -> ShowS # | |||||
Eq YamlArgumentType # | |||||
Defined in Napkin.Spec.Yaml.Types (==) :: YamlArgumentType -> YamlArgumentType -> Bool # (/=) :: YamlArgumentType -> YamlArgumentType -> Bool # | |||||
type Rep YamlArgumentType # | |||||
Defined in Napkin.Spec.Yaml.Types |
data YamlArgument #
Instances
data HaskellPackageType #
Instances
FromJSON HaskellPackageType # | |||||
Defined in Napkin.Spec.Yaml.Types | |||||
Generic HaskellPackageType # | |||||
Defined in Napkin.Spec.Yaml.Types
from :: HaskellPackageType -> Rep HaskellPackageType x # to :: Rep HaskellPackageType x -> HaskellPackageType # | |||||
Show HaskellPackageType # | |||||
Defined in Napkin.Spec.Yaml.Types showsPrec :: Int -> HaskellPackageType -> ShowS # show :: HaskellPackageType -> String # showList :: [HaskellPackageType] -> ShowS # | |||||
Eq HaskellPackageType # | |||||
Defined in Napkin.Spec.Yaml.Types (==) :: HaskellPackageType -> HaskellPackageType -> Bool # (/=) :: HaskellPackageType -> HaskellPackageType -> Bool # | |||||
type Rep HaskellPackageType # | |||||
Defined in Napkin.Spec.Yaml.Types |
data HaskellPackage #
Instances
Generic HaskellPackage # | |||||
Defined in Napkin.Spec.Yaml.Types
from :: HaskellPackage -> Rep HaskellPackage x # to :: Rep HaskellPackage x -> HaskellPackage # | |||||
Show HaskellPackage # | |||||
Defined in Napkin.Spec.Yaml.Types showsPrec :: Int -> HaskellPackage -> ShowS # show :: HaskellPackage -> String # showList :: [HaskellPackage] -> ShowS # | |||||
Eq HaskellPackage # | |||||
Defined in Napkin.Spec.Yaml.Types (==) :: HaskellPackage -> HaskellPackage -> Bool # (/=) :: HaskellPackage -> HaskellPackage -> Bool # | |||||
type Rep HaskellPackage # | |||||
Defined in Napkin.Spec.Yaml.Types type Rep HaskellPackage = D1 ('MetaData "HaskellPackage" "Napkin.Spec.Yaml.Types" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "HaskellPackage" 'PrefixI 'True) (S1 ('MetaSel ('Just "packageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HaskellPackageType) :*: (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "library") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) |
YamlSpec | |
|
Instances
(ToDbBackend b, Typeable b, FromJSON (DbBackendOptions b), Default (BackendTableMeta b), Default (DbBackendOptions b), BackendMetaConstraints b, ReifiesBackend b, SqlConcat b) => FromJSON (YamlSpec b) # | |||||
Defined in Napkin.Spec.Yaml.Types | |||||
Generic (YamlSpec b) # | |||||
Defined in Napkin.Spec.Yaml.Types
| |||||
type Rep (YamlSpec b) # | |||||
Defined in Napkin.Spec.Yaml.Types type Rep (YamlSpec b) = D1 ('MetaData "YamlSpec" "Napkin.Spec.Yaml.Types" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "YamlSpec" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "appName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AppName) :*: S1 ('MetaSel ('Just "sqlFolder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)) :*: (S1 ('MetaSel ('Just "connectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConnectionString) :*: S1 ('MetaSel ('Just "metadataConnectionURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ConnectionString)))) :*: ((S1 ('MetaSel ('Just "tableSpecs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SpecTableName (YamlTableSpec b))) :*: S1 ('MetaSel ('Just "backend") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DbBackendOptions b))) :*: (S1 ('MetaSel ('Just "parserDialect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SQLDialect) :*: (S1 ('MetaSel ('Just "specPreprocessors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [YamlPreprocessor b]) :*: S1 ('MetaSel ('Just "validator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed CustomValidator ModuleFunction))))))) :*: (((S1 ('MetaSel ('Just "haskellPackage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe HaskellPackage)) :*: S1 ('MetaSel ('Just "haskellFolders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set FilePath))) :*: (S1 ('MetaSel ('Just "extraHaskellDependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set Package)) :*: S1 ('MetaSel ('Just "defaultHaskellLanguageExtensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set YamlHaskellExtension)))) :*: ((S1 ('MetaSel ('Just "extraHaskellModules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Module]) :*: S1 ('MetaSel ('Just "haskellSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed (Spec b ()) ModuleFunction)))) :*: (S1 ('MetaSel ('Just "functionMacros") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Typed ExternMacros ModuleFunction))) :*: (S1 ('MetaSel ('Just "arguments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text YamlArgument)) :*: S1 ('MetaSel ('Just "externalTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text])))))))) |
dbBackend :: ToDbBackend b => YamlSpec b -> DbBackend #
data YamlTableSpec b #
YamlTableSpec | |
|
Instances
Generic (YamlTableSpec b) # | |||||
Defined in Napkin.Spec.Yaml.Types
from :: YamlTableSpec b -> Rep (YamlTableSpec b) x # to :: Rep (YamlTableSpec b) x -> YamlTableSpec b # | |||||
type Rep (YamlTableSpec b) # | |||||
Defined in Napkin.Spec.Yaml.Types type Rep (YamlTableSpec b) = D1 ('MetaData "YamlTableSpec" "Napkin.Spec.Yaml.Types" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "YamlTableSpec" 'PrefixI 'True) (((S1 ('MetaSel ('Just "createAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (YamlSpecProgram b)) :*: S1 ('MetaSel ('Just "preHooks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [YamlHook b])) :*: (S1 ('MetaSel ('Just "postHooks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [YamlHook b]) :*: (S1 ('MetaSel ('Just "updateStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [UpdateStrategy]) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TableSpecTag])))) :*: ((S1 ('MetaSel ('Just "deps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Ref Table]) :*: S1 ('MetaSel ('Just "hiddenDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Ref Table])) :*: (S1 ('MetaSel ('Just "parserDialect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SQLDialect)) :*: (S1 ('MetaSel ('Just "notes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (Ref SExp) Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))) |
parseTableSpec :: (ReifiesBackend b, ToDbBackend b, BackendMetaConstraints b, Typeable b, Default (BackendTableMeta b), SqlConcat b) => SpecTableName -> Value -> WarningParser (YamlTableSpec b) #
newtype YamlHaskellExtension #
Instances
FromJSON YamlHaskellExtension # | |
Defined in Napkin.Spec.Yaml.Types | |
Show YamlHaskellExtension # | |
Defined in Napkin.Spec.Yaml.Types showsPrec :: Int -> YamlHaskellExtension -> ShowS # show :: YamlHaskellExtension -> String # showList :: [YamlHaskellExtension] -> ShowS # | |
Eq YamlHaskellExtension # | |
Defined in Napkin.Spec.Yaml.Types (==) :: YamlHaskellExtension -> YamlHaskellExtension -> Bool # (/=) :: YamlHaskellExtension -> YamlHaskellExtension -> Bool # | |
Ord YamlHaskellExtension # | |
Defined in Napkin.Spec.Yaml.Types compare :: YamlHaskellExtension -> YamlHaskellExtension -> Ordering # (<) :: YamlHaskellExtension -> YamlHaskellExtension -> Bool # (<=) :: YamlHaskellExtension -> YamlHaskellExtension -> Bool # (>) :: YamlHaskellExtension -> YamlHaskellExtension -> Bool # (>=) :: YamlHaskellExtension -> YamlHaskellExtension -> Bool # max :: YamlHaskellExtension -> YamlHaskellExtension -> YamlHaskellExtension # min :: YamlHaskellExtension -> YamlHaskellExtension -> YamlHaskellExtension # |
allHaskellModules :: YamlSpec b -> [Module] #