remove dependency on package 'syb'
authorAntoine Latter <aslatter@gmail.com>
Wed, 8 Sep 2010 05:37:47 +0000 (05:37 +0000)
committerAntoine Latter <aslatter@gmail.com>
Wed, 8 Sep 2010 05:37:47 +0000 (05:37 +0000)
Text/Parsec/Pos.hs
parsec.cabal

index 56938dc..e59f6cc 100644 (file)
@@ -22,7 +22,12 @@ module Text.Parsec.Pos
     , updatePosChar, updatePosString
     ) where
 
+#ifdef BASE3 then
 import Data.Generics
+#else
+import Data.Data (Data)
+import Data.Typeable (Typeable)
+#endif
 
 -- < Source positions: a file name, a line and a column
 -- upper left is (1,1)
index 59c9723..217132c 100644 (file)
@@ -47,10 +47,11 @@ library
         Text.ParserCombinators.Parsec.Prim,
         Text.ParserCombinators.Parsec.Token
     if flag(base4)
-        build-depends: base >= 4 && < 5, syb
+        build-depends: base >= 4 && < 5
     else
         build-depends: base >= 3.0.3 && < 4
+        cpp-options: -DBASE3
     build-depends: mtl, bytestring
-    extensions:        ExistentialQuantification, PolymorphicComponents, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable
+    extensions:        ExistentialQuantification, PolymorphicComponents, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable, CPP
     ghc-options:       -O2
     ghc-prof-options:  -auto-all