packages feed

simple-cmd-args 0.1.4 → 0.1.5

raw patch · 4 files changed

+16/−5 lines, 4 files

Files

CHANGELOG.md view
@@ -2,6 +2,9 @@  `simple-cmd-args` uses [PVP Versioning](https://pvp.haskell.org). +## 0.1.5 (2020-02-06)+- add Eq and Ord instances for Subcommand+ ## 0.1.4 (2019-10-29) - export many, some, str - export <$> and <*> on older ghc7
LICENSE view
@@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Jens Petersen+Copyright (c) 2019-2020 Jens Petersen  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
SimpleCmdArgs.hs view
@@ -102,13 +102,21 @@   (case mversion of     (Just version) -> info (helper <*> versionOption version <*> cmdsParser) mods     Nothing -> info (helper <*> cmdsParser) mods)-  where +  where     versionOption ver =       infoOption (showVersion ver) (long "version" <> help "Show version")  -- | > Subcommand "command" "help description text" $ myCommand <$> optParser data Subcommand =   Subcommand String String (Parser (IO ()))++-- @since 0.1.5+instance Eq Subcommand where+  (Subcommand n1 _ _) == (Subcommand n2 _ _) = n1 == n2++-- @since 0.1.5+instance Ord Subcommand where+  compare (Subcommand n1 _ _) (Subcommand n2 _ _) = compare n1 n2  -- | list of @Subcommand@ that can be run by @simpleCmdArgs@ subcommands :: [Subcommand] -> Parser (IO ())
simple-cmd-args.cabal view
@@ -1,6 +1,6 @@ cabal-version:       1.18 name:                simple-cmd-args-version:             0.1.4+version:             0.1.5 synopsis:            Simple command args parsing and execution description:             This is a small wrapper over optparse-applicative which@@ -13,14 +13,14 @@ license-file:        LICENSE author:              Jens Petersen maintainer:          juhpetersen@gmail.com-copyright:           2019 Jens Petersen+copyright:           2019-2020 Jens Petersen category:            System build-type:          Simple extra-doc-files:     README.md                    , CHANGELOG.md tested-with:         GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4,                      GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2,-                     GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.1+                     GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.2  source-repository head   type:                git