Skip to content
Browse files

Fix build with GHC 6.10.1.

  • Loading branch information...
1 parent fe7d383 commit 876b121e73f1b5ca4b17b0c6908b27ba7efb0374 @nominolo nominolo committed May 19, 2009
Showing with 5 additions and 1 deletion.
  1. +3 −1 ghc-syb.cabal
  2. +2 −0 src/GHC/SYB/Instances.hs
View
4 ghc-syb.cabal
@@ -1,5 +1,5 @@
name: ghc-syb
-version: 0.1.2
+version: 0.1.2.1
license: BSD3
license-file: LICENSE
author: Claus Reinke
@@ -29,3 +29,5 @@ library
cpp-options: -DHAS_ANNOTATIONS
if impl(ghc >= 6.11.20090318)
cpp-options: -DCONSTRUCTOR_LIKE_IDS
+ if impl(ghc >= 6.10.2)
+ cpp-options: -DHAS_FUNCTION_OR_DATA
View
2 src/GHC/SYB/Instances.hs
@@ -251,8 +251,10 @@ deriving instance Data Literal
deriving instance Typeable CostCentre
deriving instance Data CostCentre
+#ifdef HAS_FUNCTION_OR_DATA
deriving instance Typeable FunctionOrData
deriving instance Data FunctionOrData
+#endif
deriving instance Typeable IsDupdCC
deriving instance Data IsDupdCC

0 comments on commit 876b121

Please sign in to comment.
Something went wrong with that request. Please try again.