-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Hash-addressed file storage app -- -- A command-line interface for maintaining a directory wherein each -- file's name is a hash of its content. @package hash-addressed-cli @version 2.1.0.0 module HashAddressed.App.Command.Type type Command = ParserInfo (CommandAction ()) type CommandAction a = ExceptT (Seq String) IO a module HashAddressed.App.HashFunction.Naming data HashFunctionName SHA_256 :: HashFunctionName readHashFunctionText :: Text -> Maybe HashFunctionName readHashFunctionString :: String -> Maybe HashFunctionName showHashFunction :: HashFunctionName -> String normalizeHashFunction :: String -> String hashFunctions :: [(String, HashFunctionName)] resolveHashFunction :: HashFunctionName -> HashFunction instance GHC.Classes.Eq HashAddressed.App.HashFunction.Naming.HashFunctionName module HashAddressed.App.HashFunction.Options hashFunctionRead :: ReadM HashFunctionName hashFunctionInstructions :: String module HashAddressed.App.HashFunction data HashFunctionName SHA_256 :: HashFunctionName readHashFunctionText :: Text -> Maybe HashFunctionName readHashFunctionString :: String -> Maybe HashFunctionName showHashFunction :: HashFunctionName -> String normalizeHashFunction :: String -> String resolveHashFunction :: HashFunctionName -> HashFunction hashFunctionRead :: ReadM HashFunctionName hashFunctionInstructions :: String module HashAddressed.App.Meta.Paths metaDirectory :: FilePath -> FilePath configFile :: FilePath -> FilePath module HashAddressed.App.Meta.Version data Version V1 :: Version module HashAddressed.App.Meta.Reading readHashFunctionFromConfig :: FilePath -> CommandAction HashFunctionName module HashAddressed.App.Verbosity.Type -- | On non-zero exit code, stderr messages are printed regardless -- of verbosity data Verbosity Verbosity :: Bool -> Bool -> Verbosity -- | Controls whether normal stdout output is printed [quiet] :: Verbosity -> Bool -- | Controls whether chatty stderr output is printed [verbose] :: Verbosity -> Bool instance GHC.Classes.Ord HashAddressed.App.Verbosity.Type.Verbosity instance GHC.Classes.Eq HashAddressed.App.Verbosity.Type.Verbosity module HashAddressed.App.Verbosity.Printing -- | For output that one might want to use programmatically -- -- Goes to stdout. -- -- Can be suppressed with the --quiet flag. putNormalLn :: MonadIO m => Verbosity -> String -> m () -- | For extra chatty messages -- -- Goes to stderr so that the output that one might want to use -- programmatically can be captured separately. -- -- Does not print unless the --verbose flag is used. putVerboseLn :: MonadIO m => Verbosity -> String -> m () module HashAddressed.App.Verbosity.Options verboseOption :: Parser Bool quietOption :: Parser Bool verbosityOption :: Parser Verbosity module HashAddressed.App.Verbosity -- | On non-zero exit code, stderr messages are printed regardless -- of verbosity data Verbosity Verbosity :: Bool -> Bool -> Verbosity -- | Controls whether normal stdout output is printed [quiet] :: Verbosity -> Bool -- | Controls whether chatty stderr output is printed [verbose] :: Verbosity -> Bool -- | For output that one might want to use programmatically -- -- Goes to stdout. -- -- Can be suppressed with the --quiet flag. putNormalLn :: MonadIO m => Verbosity -> String -> m () -- | For extra chatty messages -- -- Goes to stderr so that the output that one might want to use -- programmatically can be captured separately. -- -- Does not print unless the --verbose flag is used. putVerboseLn :: MonadIO m => Verbosity -> String -> m () verboseOption :: Parser Bool quietOption :: Parser Bool verbosityOption :: Parser Verbosity module HashAddressed.App.Meta.Initialization defaultConfigINI :: HashFunctionName -> Ini tryInitializeStore :: InitializationType -> Verbosity -> HashFunctionName -> FilePath -> CommandAction () -- | Assumes a store does not already exist initializeStore :: HashFunctionName -> FilePath -> CommandAction () data InitializationType CreateNew :: InitializationType CreateIfNotPresent :: InitializationType module HashAddressed.App.Meta defaultConfigINI :: HashFunctionName -> Ini tryInitializeStore :: InitializationType -> Verbosity -> HashFunctionName -> FilePath -> CommandAction () -- | Assumes a store does not already exist initializeStore :: HashFunctionName -> FilePath -> CommandAction () data InitializationType CreateNew :: InitializationType CreateIfNotPresent :: InitializationType metaDirectory :: FilePath -> FilePath configFile :: FilePath -> FilePath readHashFunctionFromConfig :: FilePath -> CommandAction HashFunctionName data Version V1 :: Version module HashAddressed.App.Command.Examples.Initialize initializeCommand :: Command module HashAddressed.App.Command.Examples.Write writeCommand :: Command module HashAddressed.App.Version version :: String module HashAddressed.App.Command.Examples.Version versionCommand :: Command module HashAddressed.App.Command.Examples.Main mainCommand :: Command module HashAddressed.App.Command.Examples mainCommand :: Command initializeCommand :: Command writeCommand :: Command versionCommand :: Command