Bump version number and make compatible with base-4 and base-3.0.3+.
authorDerek Elkins <derek.a.elkins@gmail.com>
Wed, 9 Sep 2009 23:11:34 +0000 (23:11 +0000)
committerDerek Elkins <derek.a.elkins@gmail.com>
Wed, 9 Sep 2009 23:11:34 +0000 (23:11 +0000)
parsec.cabal

index d628feb..c8b3279 100644 (file)
@@ -1,6 +1,6 @@
 name:          parsec
 version:       3.0.1
-cabal-version: >= 1.2
+cabal-version: >= 1.2.3
 license:       BSD3
 license-file:  LICENSE
 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
        input stream type.
 
+flag base4
+    Description: Use base-4.*
+    Default:    True
+
 library    
     exposed-modules:
         Text.Parsec,
@@ -42,7 +46,11 @@ library
         Text.ParserCombinators.Parsec.Pos,
         Text.ParserCombinators.Parsec.Prim,
         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
     ghc-options:       -O2
     ghc-prof-options:  -auto-all