-
Notifications
You must be signed in to change notification settings - Fork 0
/
env-parser.cabal
78 lines (72 loc) · 2.73 KB
/
env-parser.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
name: env-parser-talk
version: 0.0.1.0
synopsis: A nice way of reading the ENV
description:
This package provides an \"environment parser\" capable of collecting
application configuration information from the system environment nicely
while also providing static documentation.
.
/Motivation/
.
By default, Haskell includes only the 'System.Environment.lookupEnv' function
.
> lookupEnv :: String -> IO (Maybe String)
.
and it's not uncommon to use ad-hoc 'IO' computations structured to build
program configuring using this primitive. However, since the environment
forms a part of the public interface of a program, it'd be nice if our
"environment parsing" were self-documenting. This package provides a
'System.Environment.Parser.Parser' type to cover most of the practice of
environment parsing, highly inspired by Parser types like @parsec@ or
@attoparsec@. This type is useful not only for producing the program's
runtime environment configuration but also for documenting the environment
configuration interface the program exposes.
homepage: http://github.com/tel/env-parser-talk
license: BSD3
license-file: LICENSE
author: Joseph Abrahamson
maintainer: me@jspha.com
copyright: Copyright (c) 2012-2014 Joseph Abrahamson
category: System
build-type: Simple
extra-source-files: Changelog, README.md
cabal-version: >=1.10
library
exposed-modules:
System.Environment.Parser
System.Environment.Parser.DBConn
System.Environment.Parser.FromEnv
System.Environment.Parser.Internal
System.Environment.Parser.Internal.Collect
System.Environment.Parser.Internal.FreeA
System.Environment.Parser.Slot
build-depends: base >=4.6 && <4.7
, aeson
, attoparsec
, bytestring
, containers
, http-types
, network
, scientific
, text
, unix
, wl-pprint
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -fwarn-tabs
test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
build-depends: base >=4.6 && <4.7
, env-parser-talk
, QuickCheck
, bytestring
, hspec
, hspec-expectations
, lens-family-core
, unix
hs-source-dirs: tests
default-language: Haskell2010
source-repository head
type: git
location: git://github.com/tel/env-parser-talk.git