Update .gitignores
[packages/parsec.git] / parsec.cabal
1 name:           parsec
2 version:        3.1.12
3 cabal-version: >= 1.10
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:       https://github.com/haskell/parsec
9 bug-reports:    https://github.com/haskell/parsec/issues
10 category:       Parsing
11 synopsis:       Monadic parser combinators
12 build-type:     Simple
13 description:
14         Parsec is designed from scratch as an industrial-strength parser
15         library.  It is simple, safe, well documented (on the package
16         homepage), has extensive libraries, good error messages,
17         and is fast.  It is defined as a monad transformer that can be
18         stacked on arbitrary monads, and it is also parametric in the
19         input stream type.
20 extra-source-files: CHANGES, README.md
21 tested-with: GHC==8.2.1, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4
22
23 source-repository head
24     type: git
25     location: https://github.com/haskell/parsec
26
27 library
28     exposed-modules:
29         Text.Parsec,
30         Text.Parsec.String,
31         Text.Parsec.ByteString,
32         Text.Parsec.ByteString.Lazy,
33         Text.Parsec.Text,
34         Text.Parsec.Text.Lazy,
35         Text.Parsec.Pos,
36         Text.Parsec.Error,
37         Text.Parsec.Prim,
38         Text.Parsec.Char,
39         Text.Parsec.Combinator,
40         Text.Parsec.Token,
41         Text.Parsec.Expr,
42         Text.Parsec.Language,
43         Text.Parsec.Perm,
44         Text.ParserCombinators.Parsec,
45         Text.ParserCombinators.Parsec.Char,
46         Text.ParserCombinators.Parsec.Combinator,
47         Text.ParserCombinators.Parsec.Error,
48         Text.ParserCombinators.Parsec.Expr,
49         Text.ParserCombinators.Parsec.Language,
50         Text.ParserCombinators.Parsec.Perm,
51         Text.ParserCombinators.Parsec.Pos,
52         Text.ParserCombinators.Parsec.Prim,
53         Text.ParserCombinators.Parsec.Token
54
55     build-depends:
56        base >= 4 && < 5,
57        mtl,
58        bytestring,
59        text >= 0.2 && < 1.3
60
61     default-language: Haskell2010
62     other-extensions:
63        CPP
64        DeriveDataTypeable
65        ExistentialQuantification
66        FlexibleContexts
67        FlexibleInstances
68        FunctionalDependencies
69        MultiParamTypeClasses
70        PolymorphicComponents
71        StandaloneDeriving
72        UndecidableInstances
73
74     ghc-options: -Wall
75     if impl(ghc >= 8.0)
76        ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
77     else
78        -- provide/emulate `Control.Monad.Fail` API for pre-GHC8
79        build-depends: fail == 4.9.*
80
81
82 Test-Suite tests
83     default-language: Haskell2010
84     type:        exitcode-stdio-1.0
85     hs-source-dirs:  test
86     main-is:     Main.hs
87     other-modules:
88                  Bugs,
89                  Bugs.Bug2,
90                  Bugs.Bug6,
91                  Bugs.Bug9,
92                  Bugs.Bug35,
93                  Util
94     build-depends:
95        base,
96        parsec,
97        HUnit >= 1.2 && < 1.4,
98        test-framework >= 0.6 && < 0.9,
99        test-framework-hunit >= 0.2 && < 0.4
100     ghc-options: -Wall