-
Notifications
You must be signed in to change notification settings - Fork 14
/
dotenv.cabal
142 lines (129 loc) · 4.76 KB
/
dotenv.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: dotenv
version: 0.0.0.0
synopsis: Loads environment variables from dotenv files
homepage: https://github.com/stackbuilders/dotenv-hs
description:
.
In most applications,
<https://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 Configuration.Dotenv
> 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#readme Github>
page for more information on this package.
license: MIT
license-file: LICENSE
author: Justin Leitgeb
tested-with: GHC==8.10, GHC==9.6, GHC==9.8
maintainer: hackage@stackbuilders.com
copyright: 2015-Present 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
.dotenv.dup
flag static
description: Creates static binary.
manual: True
default: False
flag dev
description: Turn on development settings.
manual: True
default: False
executable dotenv
main-is: Main.hs
build-depends: base
, base-compat >= 0.4.0
, dotenv
, optparse-applicative >= 0.11 && < 0.19
, megaparsec
, process
, text
, directory
other-modules: Paths_dotenv
hs-source-dirs: app
if flag(static)
ghc-options: -Wall -Werror
ld-options: -static -pthread
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
default-language: Haskell2010
library
exposed-modules: Configuration.Dotenv
, Configuration.Dotenv.Internal
, Configuration.Dotenv.Environment
other-modules: Configuration.Dotenv.Parse
, Configuration.Dotenv.ParsedVariable
, Configuration.Dotenv.Text
, Configuration.Dotenv.Types
build-depends: base >= 4.14
, directory >= 1.3.6 && < 1.4
, megaparsec >= 7.0.1 && < 10.0
, containers >= 0.6.5 && < 1.7
, process >= 1.6.16 && < 1.7
, shellwords >= 0.1.3 && < 0.2
, text >= 1.2.0.0 && < 3.0
, exceptions >= 0.8 && < 0.11
, mtl >= 2.2.2 && < 2.4
, data-default-class >= 0.1.2 && < 0.2
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
main-is: Spec.hs
other-modules: Configuration.DotenvSpec
, Configuration.Dotenv.TextSpec
, Configuration.Dotenv.ParseSpec
build-depends: base
, dotenv
, megaparsec
, hspec >= 2.9.7 && <= 2.11.4
, process
, text
, hspec-megaparsec >= 2.0 && < 3.0
, data-default-class >= 0.1.2 && < 0.2
, QuickCheck >= 2.8 && < 3.0
build-tools: hspec-discover >= 2.0 && < 3.0
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