Permalink
Browse files

Fix build with recent GHC HEAD.

  • Loading branch information...
1 parent f7f036e commit d4476d4647ddc79c706e44b14290ff467aa859e3 @nominolo nominolo committed Apr 6, 2009
Showing with 12 additions and 2 deletions.
  1. +4 −2 ghc-syb.cabal
  2. +8 −0 src/GHC/SYB/Instances.hs
View
6 ghc-syb.cabal
@@ -1,5 +1,5 @@
name: ghc-syb
-version: 0.1.1
+version: 0.1.1.1
license: BSD3
license-file: LICENSE
author: Claus Reinke
@@ -26,4 +26,6 @@ library
exposed-modules: GHC.SYB.Instances,
GHC.SYB.Utils
if impl(ghc > 6.11.20081030)
- cpp-options: -DHAS_ANNOTATIONS
+ cpp-options: -DHAS_ANNOTATIONS
+ if impl(ghc >= 6.11.20090318)
+ cpp-options: -DCONSTRUCTOR_LIKE_IDS
View
8 src/GHC/SYB/Instances.hs
@@ -149,6 +149,14 @@ instance Data Var where
deriving instance Typeable InlineSpec
deriving instance Data InlineSpec
+#ifdef CONSTRUCTOR_LIKE_IDS
+deriving instance Typeable InlinePragma
+deriving instance Data InlinePragma
+
+deriving instance Typeable RuleMatchInfo
+deriving instance Data RuleMatchInfo
+#endif
+
deriving instance Typeable ForeignImport
deriving instance Data ForeignImport

0 comments on commit d4476d4

Please sign in to comment.