packages feed

Cabal revisions of envparse-0.4

Hackage metadata revisions edit the .cabal file after upload; each diff below is one revision.

revision 1
-name:                envparse-version:             0.4-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 &#x7b; name :: String, quiet :: Bool &#x7d;-  .-  hello :: IO Hello-  hello = Env.parse (header \"envparse example\") $-  &#x20; Hello \<$\> var (str <=< nonempty) \"NAME\"  (help \"Target for the greeting\")-  &#x20;       \<*\> switch                 \"QUIET\" (help \"Whether to actually print the greeting\")-  &#x20;-  main :: IO ()-  main = do-  &#x20; Hello &#x7b;name, quiet&#x7d; <- hello-  &#x20; unless quiet $-  &#x20;   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-  &#x20;-  Available environment variables:-  &#x20;-  &#x20; NAME                   Target for the greeting-  &#x20; QUIET                  Whether to actually print the-  &#x20;                        greeting-  &#x20;-  Parsing errors:-  &#x20;-  &#x20; NAME is unset-  @-homepage:            https://supki.github.io/envparse-license:             BSD3-license-file:        LICENSE-author:              Matvey Aksenov-maintainer:          matvey.aksenov@gmail.com-copyright:           2015 Matvey Aksenov-category:            System-build-type:          Simple-cabal-version:       >= 1.10-tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1-extra-source-files:-  README.markdown-  CHANGELOG.markdown-  example/Main.hs-  example/CustomError.hs-  example/Generic0.hs-  example/Generic1.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.4--library-  default-language:-    Haskell2010-  build-depends:-      base-      >= 4.6 && < 5-    , containers-  hs-source-dirs:-    src-  exposed-modules:-    Env-    Env.Internal.Error-    Env.Internal.Free-    Env.Internal.Help-    Env.Internal.Val-    Env.Internal.Parser-  if impl(ghc >= 7.10)-    exposed-modules:-      Env.Generic-  ghc-options:-    -Wall--test-suite spec-  default-language:-    Haskell2010-  type:-    exitcode-stdio-1.0-  build-depends:-      base-      >= 4.6 && < 5-    , containers-    , hspec-    , text-  hs-source-dirs:-    src-    test-  main-is:-    Spec.hs-  other-modules:-    EnvSpec-    Env.GenericSpec-    Env.Internal.ParserSpec-  ghc-options:-    -Wall+name:                envparse
+version:             0.4
+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 &#x7b; name :: String, quiet :: Bool &#x7d;
+  .
+  hello :: IO Hello
+  hello = Env.parse (header \"envparse example\") $
+  &#x20; Hello \<$\> var (str <=< nonempty) \"NAME\"  (help \"Target for the greeting\")
+  &#x20;       \<*\> switch                 \"QUIET\" (help \"Whether to actually print the greeting\")
+  &#x20;
+  main :: IO ()
+  main = do
+  &#x20; Hello &#x7b;name, quiet&#x7d; <- hello
+  &#x20; unless quiet $
+  &#x20;   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
+  &#x20;
+  Available environment variables:
+  &#x20;
+  &#x20; NAME                   Target for the greeting
+  &#x20; QUIET                  Whether to actually print the
+  &#x20;                        greeting
+  &#x20;
+  Parsing errors:
+  &#x20;
+  &#x20; NAME is unset
+  @
+homepage:            https://supki.github.io/envparse
+license:             BSD3
+license-file:        LICENSE
+author:              Matvey Aksenov
+maintainer:          matvey.aksenov@gmail.com
+copyright:           2015 Matvey Aksenov
+category:            System
+build-type:          Simple
+cabal-version:       >= 1.10
+tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
+extra-source-files:
+  README.markdown
+  CHANGELOG.markdown
+  example/Main.hs
+  example/CustomError.hs
+  example/Generic0.hs
+  example/Generic1.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.4
+
+library
+  default-language:
+    Haskell2010
+  build-depends:
+      base
+      >= 4.6 && < 4.11
+    , containers
+  hs-source-dirs:
+    src
+  exposed-modules:
+    Env
+    Env.Internal.Error
+    Env.Internal.Free
+    Env.Internal.Help
+    Env.Internal.Val
+    Env.Internal.Parser
+  if impl(ghc >= 7.10)
+    exposed-modules:
+      Env.Generic
+  ghc-options:
+    -Wall
+
+test-suite spec
+  default-language:
+    Haskell2010
+  type:
+    exitcode-stdio-1.0
+  build-depends:
+      base
+      >= 4.6 && < 5
+    , containers
+    , hspec
+    , text
+  hs-source-dirs:
+    src
+    test
+  main-is:
+    Spec.hs
+  other-modules:
+    EnvSpec
+    Env.GenericSpec
+    Env.Internal.ParserSpec
+  ghc-options:
+    -Wall