-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A simple config file swapping tool -- -- See the README on GitHub at -- https://github.com/aviaviavi/confetti#readme @package confetti @version 0.3.2 module Confetti data ParseError a ConfettiYamlNotFound :: ParseError a GroupNotFound :: a -> ParseError a ConfettiYamlInvalid :: a -> ParseError a DuplicateNameError :: a -> ParseError a newtype ApplyError a VariantsMissing :: [a] -> ApplyError a type ConfigVariant = String type ConfigVariantFileName = String type ConfigVariantPrefix = Maybe String showPrefix :: ConfigVariantPrefix -> String type ConfigTarget = String data SearchPath SearchPath :: FilePath -> Maybe Bool -> SearchPath [path] :: SearchPath -> FilePath [recursive] :: SearchPath -> Maybe Bool data VariantSearch VariantSearch :: FilePath -> ConfigVariantFileName -> Bool -> Maybe ConfigVariant -> ConfigTarget -> VariantSearch [searchDirectory] :: VariantSearch -> FilePath [fileName] :: VariantSearch -> ConfigVariantFileName [recursiveSearch] :: VariantSearch -> Bool [result] :: VariantSearch -> Maybe ConfigVariant [linkToCreate] :: VariantSearch -> ConfigTarget data ConfigGroup ConfigGroup :: Text -> [FilePath] -> Maybe [SearchPath] -> ConfigGroup [name] :: ConfigGroup -> Text [targets] :: ConfigGroup -> [FilePath] [searchPaths] :: ConfigGroup -> Maybe [SearchPath] data CommonConfigGroup CommonConfigGroup :: [FilePath] -> Maybe [SearchPath] -> CommonConfigGroup [commonTargets] :: CommonConfigGroup -> [FilePath] [commonSearchPaths] :: CommonConfigGroup -> Maybe [SearchPath] data ParsedSpecFile ParsedSpecFile :: [ConfigGroup] -> Maybe CommonConfigGroup -> ParsedSpecFile [groups] :: ParsedSpecFile -> [ConfigGroup] [commonGroup] :: ParsedSpecFile -> Maybe CommonConfigGroup data ConfigSpec ConfigSpec :: ConfigGroup -> ConfigVariantPrefix -> ConfigSpec [configGroup] :: ConfigSpec -> ConfigGroup [configVariantPrefix] :: ConfigSpec -> ConfigVariantPrefix parseGroup :: FilePath -> Text -> IO (Either (ParseError Text) ConfigGroup) appendCommonGroup :: ConfigGroup -> CommonConfigGroup -> IO ConfigGroup defaultSearchPaths :: [ConfigTarget] -> Maybe [SearchPath] -> IO [SearchPath] validateSpec :: ConfigGroup -> Either (ParseError Text) ConfigGroup findGroup :: ParsedSpecFile -> Text -> IO (Either (ParseError Text) ConfigGroup) expandPathsForGroup :: ConfigGroup -> IO ConfigGroup backUpIfNonSymLink :: FilePath -> IO () createBackup :: FilePath -> IO () removeIfExists :: FilePath -> IO () filterMissingVariants :: [ConfigVariant] -> IO [FilePath] linkTargets :: [VariantSearch] -> IO () makeVariant :: ConfigVariantPrefix -> ConfigTarget -> ConfigVariantFileName searchVariants :: ConfigVariantPrefix -> [ConfigTarget] -> [SearchPath] -> IO [VariantSearch] getRecursiveContents :: FilePath -> IO [FilePath] findVariantInPath :: ConfigVariantPrefix -> ConfigTarget -> SearchPath -> IO VariantSearch applySpec :: ConfigSpec -> IO (Maybe (ApplyError FilePath)) absolutePath :: FilePath -> IO FilePath printSuccess :: String -> IO () printFail :: String -> IO () instance GHC.Generics.Generic Confetti.ParsedSpecFile instance GHC.Show.Show Confetti.ParsedSpecFile instance GHC.Generics.Generic Confetti.CommonConfigGroup instance GHC.Show.Show Confetti.CommonConfigGroup instance GHC.Generics.Generic Confetti.ConfigGroup instance GHC.Show.Show Confetti.ConfigGroup instance GHC.Generics.Generic Confetti.VariantSearch instance GHC.Show.Show Confetti.VariantSearch instance GHC.Generics.Generic Confetti.SearchPath instance GHC.Classes.Eq Confetti.SearchPath instance GHC.Show.Show Confetti.SearchPath instance GHC.Generics.Generic (Confetti.ParseError a) instance Data.Aeson.Types.FromJSON.FromJSON Confetti.ParsedSpecFile instance Data.Aeson.Types.FromJSON.FromJSON Confetti.CommonConfigGroup instance Data.Aeson.Types.FromJSON.FromJSON Confetti.ConfigGroup instance Data.Aeson.Types.FromJSON.FromJSON Confetti.SearchPath instance GHC.Show.Show a => GHC.Show.Show (Confetti.ApplyError a) instance GHC.Show.Show a => GHC.Show.Show (Confetti.ParseError a)