packages feed

structured-cli 2.6.0.0 → 2.7.0.0

raw patch · 2 files changed

+9/−7 lines, 2 filesdep ~haskeline

Dependency ranges changed: haskeline

Files

src/System/Console/StructuredCLI.hs view
@@ -79,7 +79,7 @@                                      Action(..),                                      CLIException(..),                                      Commands,-                                     CommandsT,+                                     CommandsT(..),                                      Handler,                                      Node,                                      Parser,@@ -504,10 +504,11 @@ -- | Launches the CLI application. It doesn't normally return unless an exception is thrown -- or if it runs out of input in batch mode. Normal return value is that returned by the CommandsT -- action that built the tree. Remember that 'Settings' is an instance of 'Default'-runCLI :: (MonadMask m, MonadIO m) => String-                                   -> Settings m-                                   -> CommandsT m a-                                   -> m (Either CLIException a)+runCLI :: (MonadMask m, MonadIO m, HL.MonadException m) +       => String+       -> Settings m+       -> CommandsT m a+       -> m (Either CLIException a) runCLI name settings@Settings{..} commands = do   (value, root) <- runCommandsT commands   when (not isBatch) $ liftIO . putStrLn $ getBanner@@ -554,7 +555,8 @@ defExceptionHandler e =     return . Left $ e -runLevel :: (?settings::Settings m, MonadMask m, MonadIO m) => ParserT m ()+runLevel :: (?settings::Settings m, MonadMask m, MonadIO m, HL.MonadException m) +         => ParserT m () runLevel = do   prompt  <- liftUserM . buildPrompt =<< withLabels   stack0  <- getStack
structured-cli.cabal view
@@ -1,5 +1,5 @@ name:                structured-cli-version:             2.6.0.0+version:             2.7.0.0 synopsis:            Application library for building interactive console CLIs description:         This module provides the tools to build a complete "structured" CLI application, similar to those found in systems like Cisco IOS or console configuration utilities etc. It aims to be easy for implementors to use. homepage:            https://gitlab.com/codemonkeylabs/structured-cli#readme