packages feed

optparse-applicative 0.11.0 → 0.11.0.1

raw patch · 3 files changed

+11/−3 lines, 3 files

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+## Version 0.11.0.1 (5 Oct 2014)++- Updated documentation.+ ## Version 0.11.0 (4 Oct 2014)  - Added Alternative instances for `Chunk` and `ReadM`.
README.md view
@@ -173,16 +173,20 @@ used.  You can also create a custom reader that doesn't use the `Read` typeclass, and-use it to parse option arguments:+use it to parse option arguments.  A custom reader is a value in the `ReadM`+monad.  ```haskell data FluxCapacitor = ...  parseFluxCapacitor :: Monad m => String -> m FluxCapacitor -option parseFluxCapacitor+option (str >>= parseFluxCapacitor)   ( long "flux-capacitor" ) ```++Use `readerAbort` or `readerError` within the `ReadM` monad to exit with an+error message.  ### Flags 
optparse-applicative.cabal view
@@ -1,5 +1,5 @@ name:                optparse-applicative-version:             0.11.0+version:             0.11.0.1 synopsis:            Utilities and combinators for parsing command line options description:     Here is a simple example of an applicative option parser: