-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from Hackage at 2018-10-10T22:40:37Z
- Loading branch information
1 parent
27e0fc6
commit cbf884f
Showing
2 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
name: dotenv | ||
version: 0.6.0.2 | ||
synopsis: Loads environment variables from dotenv files | ||
homepage: https://github.com/stackbuilders/dotenv-hs | ||
description: | ||
. | ||
In most applications, | ||
<http://12factor.net/config configuration should be separated from code>. | ||
While it usually works well to keep configuration in the | ||
environment, there are cases where you may want to store | ||
configuration in a file outside of version control. | ||
. | ||
"Dotenv" files have become popular for storing configuration, | ||
especially in development and test environments. In | ||
<https://github.com/bkeepers/dotenv Ruby>, | ||
<https://github.com/theskumar/python-dotenv Python> and | ||
<https://www.npmjs.com/package/dotenv Javascript> there are libraries | ||
to facilitate loading of configuration options from configuration | ||
files. This library loads configuration to environment variables for | ||
programs written in Haskell. | ||
. | ||
To use, call `loadFile` from your application: | ||
. | ||
> import Control.Monad (void) | ||
> import Configuration.Dotenv | ||
> void $ loadFile defaultConfig | ||
. | ||
This package also includes an executable that can be used | ||
to inspect the results of applying one or more Dotenv files | ||
to the environment, or for invoking your executables with | ||
an environment after one or more Dotenv files is applied. | ||
. | ||
See the <https://github.com/stackbuilders/dotenv-hs Github> | ||
page for more information on this package. | ||
license: MIT | ||
license-file: LICENSE | ||
author: Justin Leitgeb | ||
maintainer: hackage@stackbuilders.com | ||
copyright: 2015-2017 Stack Builders Inc. | ||
category: Configuration | ||
build-type: Simple | ||
extra-source-files: spec/fixtures/.dotenv | ||
, CHANGELOG.md | ||
, README.md | ||
cabal-version: >=1.10 | ||
bug-reports: https://github.com/stackbuilders/dotenv-hs/issues | ||
|
||
data-dir: spec/fixtures/ | ||
data-files: | ||
.dotenv | ||
.dotenv.example | ||
.scheme.yml | ||
|
||
flag dev | ||
description: Turn on development settings. | ||
manual: True | ||
default: False | ||
|
||
executable dotenv | ||
main-is: Main.hs | ||
build-depends: base >=4.7 && <5.0 | ||
, base-compat >= 0.4 | ||
, dotenv | ||
, optparse-applicative >=0.11 && < 0.15 | ||
, megaparsec | ||
, process | ||
, text | ||
, transformers >=0.4 && < 0.6 | ||
, yaml >= 0.8 | ||
other-modules: Paths_dotenv | ||
|
||
hs-source-dirs: app | ||
if flag(dev) | ||
ghc-options: -Wall -Werror | ||
else | ||
ghc-options: -O2 -Wall | ||
default-language: Haskell2010 | ||
|
||
library | ||
exposed-modules: Configuration.Dotenv | ||
, Configuration.Dotenv.Parse | ||
, Configuration.Dotenv.ParsedVariable | ||
, Configuration.Dotenv.Text | ||
, Configuration.Dotenv.Types | ||
, Configuration.Dotenv.Scheme | ||
, Configuration.Dotenv.Scheme.Helpers | ||
, Configuration.Dotenv.Scheme.Parser | ||
, Configuration.Dotenv.Scheme.Types | ||
|
||
build-depends: base >=4.7 && <5.0 | ||
, base-compat >= 0.4 | ||
, directory | ||
, megaparsec >= 7.0.1 && < 8.0 | ||
, containers | ||
, process >= 1.6.3.0 && < 1.7 | ||
, text | ||
, transformers >=0.4 && < 0.6 | ||
, exceptions >= 0.8 && < 0.11 | ||
, yaml >= 0.8 | ||
|
||
if !impl(ghc >= 7.10) | ||
build-depends: void == 0.7.* | ||
|
||
hs-source-dirs: src | ||
ghc-options: -Wall | ||
if flag(dev) | ||
ghc-options: -Wall -Werror | ||
else | ||
ghc-options: -O2 -Wall | ||
default-language: Haskell2010 | ||
|
||
test-suite dotenv-test | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: spec, src | ||
main-is: Spec.hs | ||
other-modules: Configuration.DotenvSpec | ||
, Configuration.Dotenv.TextSpec | ||
, Configuration.Dotenv.ParseSpec | ||
, Configuration.Dotenv | ||
, Configuration.Dotenv.Text | ||
, Configuration.Dotenv.Types | ||
, Configuration.Dotenv.Parse | ||
, Configuration.Dotenv.ParsedVariable | ||
, Configuration.Dotenv.SchemeSpec | ||
, Configuration.Dotenv.Scheme.ParseSpec | ||
, Configuration.Dotenv.Scheme | ||
, Configuration.Dotenv.Scheme.Helpers | ||
, Configuration.Dotenv.Scheme.Parser | ||
, Configuration.Dotenv.Scheme.Types | ||
|
||
build-depends: base >=4.7 && <5.0 | ||
, base-compat >= 0.4 | ||
, containers | ||
, dotenv | ||
, directory | ||
, megaparsec | ||
, hspec | ||
, process | ||
, text | ||
, transformers >=0.4 && < 0.6 | ||
, exceptions >= 0.8 && < 0.11 | ||
, hspec-megaparsec >= 2.0 && < 3.0 | ||
, yaml >= 0.8 | ||
|
||
if !impl(ghc >= 7.10) | ||
build-depends: void == 0.7.* | ||
|
||
if flag(dev) | ||
ghc-options: -Wall -Werror | ||
else | ||
ghc-options: -O2 -Wall | ||
default-language: Haskell2010 | ||
|
||
source-repository head | ||
type: git | ||
location: git@github.com:stackbuilders/dotenv-hs.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"package-hashes":{"MD5":"0c94c787da26f2ec2bfb36cc144881cb","Skein512_512":"eaeaf7f30954f111a3fb7804c92130605dace071ec851e4d626adbc73b54466fbabb0b5990d61451afa02d80194c67fdffa3aa49ac0cd21357116e722e4f5906","SHA1":"d068cce0445fd3fa151381786e2bc76903917a88","SHA512":"270ecca5628a179dc0aecbf47f0e61b2a891fe903b57bce6254d6f9b3e35e5240af9c4653188720926c9cc4e87279107e8cb42e72b33d85f880a4758e54a2bf4","SHA256":"097162549a9ea749ba51f26b5195e9d94e20b9b73e4dc147a59b20332ff9f775"},"package-locations":["https://hackage.haskell.org/package/dotenv-0.6.0.2/dotenv-0.6.0.2.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/dotenv-0.6.0.2.tar.gz"],"package-size":16817} |