-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-parser.cabal
66 lines (64 loc) · 2.88 KB
/
config-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
name: config-parser
version: 1.2.0.0
synopsis: Parse config files using parsec and generate parse errors
on unhandled keys
description: This is yet another entry in Haskell's enourmous collection
of config-file parsing libraries. It lacks many of the
bells and whistles of other config-file parsing libraries,
such as hierarchical sections and on-the-fly reloading. On
the other hand, it has a combination of features I was
unable to find in other libraries:
.
* Keys and values are parsed with configurable parsec
parsers, resulting in flexible syntax and pretty
error messages.
.
* Custom parsers can be created with parsec to handle
values of any type.
.
* Keys that aren't explicitly handled result in parse
errors.
.
If you don't need all of these features, there are
probably better libraries out there for you. If you're free
to use its idiosyncratic file format, the config-value
library, in particular, is excelent.
homepage: /~https://github.com/protoben/config-parser
license: MIT
license-file: LICENSE
author: Ben Hamlin
maintainer: protob3n@gmail.com
-- copyright:
category: Text
build-type: Simple
extra-source-files: ChangeLog.md
cabal-version: >=1.10
library
ghc-options: -Wall
exposed-modules: Text.ConfigParser
other-modules: Text.ConfigParser.Util,
Text.ConfigParser.Types,
Text.ConfigParser.Parser
other-extensions: ExistentialQuantification,
RankNTypes,
RecordWildCards
build-depends: base >=4.9 && <4.11,
parsec >=3.1 && <3.2,
text >=1.2 && <1.3
-- hs-source-dirs:
default-language: Haskell2010
test-suite parsing
ghc-options: -Wall
other-modules: Text.ConfigParser.Util,
Text.ConfigParser.Types,
Text.ConfigParser.Parser,
Text.ConfigParser
type: exitcode-stdio-1.0
main-is: tests/Parsing.hs
default-language: Haskell2010
build-depends: base >=4.9 && <4.11,
extra >=1.5 && <1.7,
hspec >=2.4 && <2.5,
lens >=4.15 && <4.16,
parsec >=3.1 && <3.2,
text >=1.2 && <1.3