Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ParseError a Source #
Instances
newtype ApplyError a Source #
VariantsMissing [a] |
Instances
Show a => Show (ApplyError a) Source # | |
Defined in Lib showsPrec :: Int -> ApplyError a -> ShowS # show :: ApplyError a -> String # showList :: [ApplyError a] -> ShowS # |
type ConfigVariant = String Source #
type ConfigVariantFileName = String Source #
type ConfigVariantPrefix = Maybe String Source #
type ConfigTarget = String Source #
data SearchPath Source #
Instances
Eq SearchPath Source # | |
Defined in Lib (==) :: SearchPath -> SearchPath -> Bool # (/=) :: SearchPath -> SearchPath -> Bool # | |
Show SearchPath Source # | |
Defined in Lib showsPrec :: Int -> SearchPath -> ShowS # show :: SearchPath -> String # showList :: [SearchPath] -> ShowS # | |
Generic SearchPath Source # | |
Defined in Lib type Rep SearchPath :: * -> * # from :: SearchPath -> Rep SearchPath x # to :: Rep SearchPath x -> SearchPath # | |
FromJSON SearchPath Source # | |
Defined in Lib parseJSON :: Value -> Parser SearchPath # parseJSONList :: Value -> Parser [SearchPath] # | |
type Rep SearchPath Source # | |
Defined in Lib type Rep SearchPath = D1 (MetaData "SearchPath" "Lib" "confetti-0.3.1-1bYcoUb204dJnrqaoRZTKx" False) (C1 (MetaCons "SearchPath" PrefixI True) (S1 (MetaSel (Just "path") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath) :*: S1 (MetaSel (Just "recursive") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))) |
data VariantSearch Source #
Instances
data ConfigGroup Source #
ConfigGroup | |
|
Instances
Show ConfigGroup Source # | |
Defined in Lib showsPrec :: Int -> ConfigGroup -> ShowS # show :: ConfigGroup -> String # showList :: [ConfigGroup] -> ShowS # | |
Generic ConfigGroup Source # | |
Defined in Lib type Rep ConfigGroup :: * -> * # from :: ConfigGroup -> Rep ConfigGroup x # to :: Rep ConfigGroup x -> ConfigGroup # | |
FromJSON ConfigGroup Source # | |
Defined in Lib parseJSON :: Value -> Parser ConfigGroup # parseJSONList :: Value -> Parser [ConfigGroup] # | |
type Rep ConfigGroup Source # | |
Defined in Lib type Rep ConfigGroup = D1 (MetaData "ConfigGroup" "Lib" "confetti-0.3.1-1bYcoUb204dJnrqaoRZTKx" False) (C1 (MetaCons "ConfigGroup" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "targets") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [FilePath]) :*: S1 (MetaSel (Just "searchPaths") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SearchPath]))))) |
data CommonConfigGroup Source #
Instances
Show CommonConfigGroup Source # | |
Defined in Lib showsPrec :: Int -> CommonConfigGroup -> ShowS # show :: CommonConfigGroup -> String # showList :: [CommonConfigGroup] -> ShowS # | |
Generic CommonConfigGroup Source # | |
Defined in Lib type Rep CommonConfigGroup :: * -> * # from :: CommonConfigGroup -> Rep CommonConfigGroup x # to :: Rep CommonConfigGroup x -> CommonConfigGroup # | |
FromJSON CommonConfigGroup Source # | |
Defined in Lib parseJSON :: Value -> Parser CommonConfigGroup # parseJSONList :: Value -> Parser [CommonConfigGroup] # | |
type Rep CommonConfigGroup Source # | |
Defined in Lib type Rep CommonConfigGroup = D1 (MetaData "CommonConfigGroup" "Lib" "confetti-0.3.1-1bYcoUb204dJnrqaoRZTKx" False) (C1 (MetaCons "CommonConfigGroup" PrefixI True) (S1 (MetaSel (Just "commonTargets") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [FilePath]) :*: S1 (MetaSel (Just "commonSearchPaths") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [SearchPath])))) |
data ParsedSpecFile Source #
Instances
Show ParsedSpecFile Source # | |
Defined in Lib showsPrec :: Int -> ParsedSpecFile -> ShowS # show :: ParsedSpecFile -> String # showList :: [ParsedSpecFile] -> ShowS # | |
Generic ParsedSpecFile Source # | |
Defined in Lib type Rep ParsedSpecFile :: * -> * # from :: ParsedSpecFile -> Rep ParsedSpecFile x # to :: Rep ParsedSpecFile x -> ParsedSpecFile # | |
FromJSON ParsedSpecFile Source # | |
Defined in Lib parseJSON :: Value -> Parser ParsedSpecFile # parseJSONList :: Value -> Parser [ParsedSpecFile] # | |
type Rep ParsedSpecFile Source # | |
Defined in Lib type Rep ParsedSpecFile = D1 (MetaData "ParsedSpecFile" "Lib" "confetti-0.3.1-1bYcoUb204dJnrqaoRZTKx" False) (C1 (MetaCons "ParsedSpecFile" PrefixI True) (S1 (MetaSel (Just "groups") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [ConfigGroup]) :*: S1 (MetaSel (Just "commonGroup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe CommonConfigGroup)))) |
data ConfigSpec Source #
parseGroup :: FilePath -> Text -> IO (Either (ParseError Text) ConfigGroup) Source #
defaultSearchPaths :: [ConfigTarget] -> Maybe [SearchPath] -> IO [SearchPath] Source #
findGroup :: ParsedSpecFile -> Text -> IO (Either (ParseError Text) ConfigGroup) Source #
backUpIfNonSymLink :: FilePath -> IO () Source #
createBackup :: FilePath -> IO () Source #
removeIfExists :: FilePath -> IO () Source #
filterMissingVariants :: [ConfigVariant] -> IO [FilePath] Source #
linkTargets :: [VariantSearch] -> IO () Source #
searchVariants :: ConfigVariantPrefix -> [ConfigTarget] -> [SearchPath] -> IO [VariantSearch] Source #
applySpec :: ConfigSpec -> IO (Maybe (ApplyError FilePath)) Source #
printSuccess :: String -> IO () Source #