Bump version number and make compatible with base-4 and base-3.0.3+.

This commit is contained in:
Derek Elkins 2009-09-09 23:11:34 +00:00
parent e97a1f707f
commit 77d48632dc

View File

@ -1,6 +1,6 @@
name: parsec name: parsec
version: 3.0.1 version: 3.0.1
cabal-version: >= 1.2 cabal-version: >= 1.2.3
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
author: Daan Leijen <daan@cs.uu.nl>, Paolo Martini <paolo@nemail.it> author: Daan Leijen <daan@cs.uu.nl>, Paolo Martini <paolo@nemail.it>
@ -17,6 +17,10 @@ description:
stacked on arbitrary monads, and it is also parametric in the stacked on arbitrary monads, and it is also parametric in the
input stream type. input stream type.
flag base4
Description: Use base-4.*
Default: True
library library
exposed-modules: exposed-modules:
Text.Parsec, Text.Parsec,
@ -42,7 +46,11 @@ library
Text.ParserCombinators.Parsec.Pos, Text.ParserCombinators.Parsec.Pos,
Text.ParserCombinators.Parsec.Prim, Text.ParserCombinators.Parsec.Prim,
Text.ParserCombinators.Parsec.Token Text.ParserCombinators.Parsec.Token
build-depends: base, mtl, bytestring, syb if flag(base4)
build-depends: base >= 4 && < 5, syb
else
build-depends: base >= 3.0.3 && < 4
build-depends: mtl, bytestring
extensions: ExistentialQuantification, PolymorphicComponents, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable extensions: ExistentialQuantification, PolymorphicComponents, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable
ghc-options: -O2 ghc-options: -O2
ghc-prof-options: -auto-all ghc-prof-options: -auto-all