-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathattoparsec-parsec.cabal
86 lines (81 loc) · 2.49 KB
/
attoparsec-parsec.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
name: attoparsec-parsec
version: 0.1.3
license: MIT
license-file: LICENSE
copyright: (c) 2011, 2012 Simon Hengel
author: Simon Hengel <[email protected]>
maintainer: Simon Hengel <[email protected]>
build-type: Simple
cabal-version: >= 1.8
category: Parsing
synopsis: An Attoparsec compatibility layer for Parsec
description: This package provides an implementation of
"Data.Attoparsec.Text" in terms of Parsec.
It can be used to write parsers that can be compiled against
both Attoparsec and Parsec.
.
Attoparsec is an awesome and very fast library, but it still
has a weak point: It does not generate very useful error
messages on parse errors. Compiling an Attoparsec parser
against Parsec can be useful for at least two scenarios.
.
- Parsec can be used while developing Attoparsec parsers, so
that you get better error messages on failing test cases.
.
- You can use Attoparsec for parsing, so that you benefit
from it's speed. And on parse errors you can re-parse the
input with Parsec, so that you can display a useful error
message to the user.
.
A simple usage example is here:
<https://github.com/sol/attoparsec-parsec#readme>
source-repository head
type: git
location: https://github.com/sol/attoparsec-parsec
library
ghc-options:
-Wall
hs-source-dirs:
src
build-depends:
base == 4.*
, parsec >= 3.1.2
, text
, attoparsec >= 0.10.0.0
exposed-modules:
Data.Attoparsec.Text.Parsec
test-suite spec
type:
exitcode-stdio-1.0
ghc-options:
-Wall
hs-source-dirs:
test
main-is:
Spec.hs
build-depends:
base
, attoparsec-parsec
, text
, hspec >= 1.5
, QuickCheck
test-suite readme-parsec
type:
exitcode-stdio-1.0
ghc-options:
-Wall -pgmL markdown-unlit
main-is:
README.lhs
build-depends:
base, attoparsec-parsec, text, markdown-unlit
test-suite readme-attoparsec
type:
exitcode-stdio-1.0
ghc-options:
-Wall -pgmL markdown-unlit
cpp-options:
-DUSE_ATTOPARSEC
main-is:
README.lhs
build-depends:
base, attoparsec, text, markdown-unlit