Cabal revisions of envparse-0.2.0
Hackage metadata revisions edit the .cabal file after upload; each diff below is one revision.
revision 1
-name: envparse-version: 0.2.0-synopsis: Parse environment variables-description:- Here's a simple example of a program that uses @envparse@'s parser:- .- @- module Main (main) where- .- import Control.Monad (unless)- import Env- .- data Hello = Hello { name :: String, quiet :: Bool }- .- hello :: IO Hello- hello = Env.parse (header \"envparse example\") $-   Hello \<$\> var (str <=< nonempty) \"NAME\" (help \"Target for the greeting\")-   \<*\> switch \"QUIET\" (help \"Whether to actually print the greeting\")-  - main :: IO ()- main = do-   Hello { name, quiet } <- hello-   unless quiet $-   putStrLn (\"Hello, \" ++ name ++ \"!\")- @- .- The @NAME@ environment variable is mandatory and contains the name of the person to- greet. @QUIET@, on the other hand, is an optional boolean flag, false by default, that- decides whether the greeting should be silent.- .- If the @NAME@ variable is undefined in the environment then running the program will- result in the following help text:- .- @- envparse example-  - Available environment variables:-  -   NAME Target for the greeting-   QUIET Whether to actually print the-   greeting-  - Parsing errors:-  -   NAME is missing- @-homepage: https://supki.github.io/envparse-license: BSD2-license-file: LICENSE-author: Matvey Aksenov-maintainer: matvey.aksenov@gmail.com-copyright: 2014 Matvey Aksenov-category: System-build-type: Simple-cabal-version: >= 1.10-extra-source-files:- README.markdown- CHANGELOG.markdown- example/Main.hs--source-repository head- type: git- location: https://github.com/supki/envparse--source-repository this- type: git- location: https://github.com/supki/envparse- tag: 0.2.0--library- default-language:- Haskell2010- build-depends:- base >= 4.6 && < 5- , containers- hs-source-dirs:- src- exposed-modules:- Env- other-modules:- Env.Free- Env.Help- Env.Parse- Env.Val- ghc-options:- -Wall--test-suite spec- default-language:- Haskell2010- type:- exitcode-stdio-1.0- build-depends:- base >= 4.6 && < 5- , containers- , hspec- hs-source-dirs:- src- test- main-is:- Spec.hs+name: envparse +version: 0.2.0 +x-revision: 1 +synopsis: Parse environment variables +description: + Here's a simple example of a program that uses @envparse@'s parser: + . + @ + module Main (main) where + . + import Control.Monad (unless) + import Env + . + data Hello = Hello { name :: String, quiet :: Bool } + . + hello :: IO Hello + hello = Env.parse (header \"envparse example\") $ +   Hello \<$\> var (str <=< nonempty) \"NAME\" (help \"Target for the greeting\") +   \<*\> switch \"QUIET\" (help \"Whether to actually print the greeting\") +   + main :: IO () + main = do +   Hello { name, quiet } <- hello +   unless quiet $ +   putStrLn (\"Hello, \" ++ name ++ \"!\") + @ + . + The @NAME@ environment variable is mandatory and contains the name of the person to + greet. @QUIET@, on the other hand, is an optional boolean flag, false by default, that + decides whether the greeting should be silent. + . + If the @NAME@ variable is undefined in the environment then running the program will + result in the following help text: + . + @ + envparse example +   + Available environment variables: +   +   NAME Target for the greeting +   QUIET Whether to actually print the +   greeting +   + Parsing errors: +   +   NAME is missing + @ +homepage: https://supki.github.io/envparse +license: BSD2 +license-file: LICENSE +author: Matvey Aksenov +maintainer: matvey.aksenov@gmail.com +copyright: 2014 Matvey Aksenov +category: System +build-type: Simple +cabal-version: >= 1.10 +extra-source-files: + README.markdown + CHANGELOG.markdown + example/Main.hs + +source-repository head + type: git + location: https://github.com/supki/envparse + +source-repository this + type: git + location: https://github.com/supki/envparse + tag: 0.2.0 + +library + default-language: + Haskell2010 + build-depends: + base >= 4.6 && < 4.11 + , containers + hs-source-dirs: + src + exposed-modules: + Env + other-modules: + Env.Free + Env.Help + Env.Parse + Env.Val + ghc-options: + -Wall + +test-suite spec + default-language: + Haskell2010 + type: + exitcode-stdio-1.0 + build-depends: + base >= 4.6 && < 5 + , containers + , hspec + hs-source-dirs: + src + test + main-is: + Spec.hs