commander-cli 0.10.1.0 → 0.10.1.1
raw patch · 2 files changed
+6/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +5/−4
- commander-cli.cabal +1/−1
README.md view
@@ -6,11 +6,12 @@ This library is meant to allow Haskell programmers to quickly and easily construct command line interfaces with decent documentation. -One extension I use in these examples is `-XTypeApplications`, which uses the `@param`+One extension I use in these examples is `-XTypeApplications`. This extension allows us to use the `@param` syntax to apply an type-level argument explicitly to a function with a `forall x ...` in its-type, rather than implicitly, we do when we write `fmap (+ 1) [1, 2, 3]` applying the type `[]`-to `fmap`. It's because of type inference in Haskell that we don't always have to apply our-types explicitly, as many other languages force you to do using a syntax typically like `fmap<[], Int> (+ 1) [1, 2, 3]`.`.+type. This is as opposed to implicitly applying type-level arguments, as we do when we write+`fmap (+ 1) [1, 2, 3]`, applying the type `[]` to `fmap`. It's because of type inference in Haskell+that we don't always have to apply our types explicitly, as many other languages force you to do using+a syntax typically like `fmap<[], Int> (+ 1) [1, 2, 3]`.`. We can go to the command line and try out this example:
commander-cli.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.4 name: commander-cli-version: 0.10.1.0+version: 0.10.1.1 synopsis: A command line argument/option parser library description: A command line argument/option parser library. homepage: https://github.com/SamuelSchlesinger/commander-cli