packages feed

structured-cli 2.5.0.2 → 2.5.0.3

raw patch · 2 files changed

+18/−14 lines, 2 files

Files

src/System/Console/StructuredCLI.hs view
@@ -559,6 +559,7 @@   stack0  <- getStack   result  <- runMaybeT $ do               line  <- MaybeT . liftInputT $ HL.getInputLine prompt+              when (isBatch ?settings) $ printInput line               process line   case result of     Nothing ->@@ -572,6 +573,7 @@           withLabels     = fmap fst <$> getStack           restore stack  = liftStateM . modify $ \s -> s { stack = stack }           showStack      = intercalate " " . reverse+          printInput     = lift . liftInputT . HL.outputStrLn  getStack :: (Monad m) => ParserT m [Level m] getStack = liftStateM $ gets stack
structured-cli.cabal view
@@ -1,8 +1,9 @@ name:                structured-cli-version:             2.5.0.2+version:             2.5.0.3 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+bug-reports:         https://gitlab.com/codemonkeylabs/structured-cli/issues license:             BSD3 license-file:        LICENSE author:              Erick Gonzalez@@ -13,6 +14,10 @@ extra-source-files:  README.md cabal-version:       >=1.10 +source-repository head+  type: git+  location: https://gitlab.com/codemonkeylabs/structured-cli+ flag debug   description: Enable debug messages   default: False@@ -20,12 +25,12 @@ library   hs-source-dirs:      src   exposed-modules:     System.Console.StructuredCLI-  build-depends:       base >= 4.7 && < 5-                     , data-default-                     , haskeline-                     , mtl-                     , split-                     , transformers+  build-depends:       base         >= 4.9.1.0 && < 5+                     , data-default >= 0.7.1.1 && < 0.8+                     , haskeline    >= 0.7.4.0 && < 0.8+                     , mtl          >= 2.2.1   && < 3.0+                     , split        >= 0.2.3.2 && < 0.3+                     , transformers >= 0.5.2.0 && < 0.6   ghc-options:         -Wall -fno-warn-orphans   default-language:    Haskell2010   if flag(debug) {@@ -36,13 +41,10 @@   hs-source-dirs:      example   main-is:             Main.hs   ghc-options:         -threaded -rtsopts -Wall-  build-depends:       base-                     , data-default-                     , mtl-                     , split+  build-depends:       base         >= 4.9.1.0 && < 5+                     , data-default >= 0.7.1.1 && < 0.8+                     , mtl          >= 2.2.1   && < 3.0+                     , split        >= 0.2.3.2 && < 0.3                      , structured-cli   default-language:    Haskell2010 -source-repository head-  type:     git-  location: https://gitlab.com/codemonkeylabs/structured-cli