e70ab8ce0625c18b30cbd60be1fee098ec3c6094
[packages/parsec.git] / parsec.cabal
1 name:           parsec
2 version:        3.1.1
3 cabal-version: >= 1.2.3
4 license:        BSD3
5 license-file:   LICENSE
6 author:         Daan Leijen <daan@microsoft.com>, Paolo Martini <paolo@nemail.it>
7 maintainer:     Antoine Latter <aslatter@gmail.com>
8 homepage:       http://www.cs.uu.nl/~daan/parsec.html
9 category:       Parsing
10 synopsis:       Monadic parser combinators
11 build-type: Simple
12 description:
13         Parsec is designed from scratch as an industrial-strength parser
14         library.  It is simple, safe, well documented (on the package
15         homepage), has extensive libraries and good error messages,
16         and is also fast.  It is defined as a monad transformer that can be
17         stacked on arbitrary monads, and it is also parametric in the
18         input stream type.
19
20 flag base4
21     Description: Use base-4.*
22     Default:    True
23
24 library    
25     exposed-modules:
26         Text.Parsec,
27         Text.Parsec.String,
28         Text.Parsec.ByteString,
29         Text.Parsec.ByteString.Lazy,
30         Text.Parsec.Pos,
31         Text.Parsec.Error,
32         Text.Parsec.Prim,
33         Text.Parsec.Char,
34         Text.Parsec.Combinator,
35         Text.Parsec.Token,
36         Text.Parsec.Expr,
37         Text.Parsec.Language,
38         Text.Parsec.Perm,
39         Text.ParserCombinators.Parsec,
40         Text.ParserCombinators.Parsec.Char,
41         Text.ParserCombinators.Parsec.Combinator,
42         Text.ParserCombinators.Parsec.Error,
43         Text.ParserCombinators.Parsec.Expr,
44         Text.ParserCombinators.Parsec.Language,
45         Text.ParserCombinators.Parsec.Perm,
46         Text.ParserCombinators.Parsec.Pos,
47         Text.ParserCombinators.Parsec.Prim,
48         Text.ParserCombinators.Parsec.Token
49     if flag(base4)
50         build-depends: base >= 4 && < 5
51     else
52         build-depends: base >= 3.0.3 && < 4
53         cpp-options: -DBASE3
54     build-depends: mtl, bytestring
55     extensions: ExistentialQuantification, PolymorphicComponents, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable, CPP
56     ghc-options:        -O2
57     ghc-prof-options:   -auto-all