diff --git a/HsParrot.cabal b/HsParrot.cabal
--- a/HsParrot.cabal
+++ b/HsParrot.cabal
@@ -1,5 +1,5 @@
 Name:                HsParrot
-Version:             0.0.2.20120717
+Version:             0.0.2.20150805
 Category:            Language, Pugs
 Synopsis:            Haskell integration with Parrot virtual machine
 Description:         Haskell integration with Parrot virtual machine
@@ -9,10 +9,10 @@
 License-File:        LICENSE
 Author:              Audrey Tang
 Maintainer:          audreyt@audreyt.org
-Copyright:           Audrey Tang, 2008
+Copyright:           Audrey Tang, 2008-2015
 
 Build-Type:          Simple
-Tested-With:         GHC==6.8.2, GHC==6.8.3
+Tested-With:         GHC==6.8.2, GHC==6.8.3, GHC==7.10.2
 
 cabal-version:       >= 1.2.3
 -- ghc-options:         -F -pgmF pugs-DrIFT -optF-pgmF
diff --git a/src/Language/PIR.hs b/src/Language/PIR.hs
--- a/src/Language/PIR.hs
+++ b/src/Language/PIR.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE StandaloneDeriving #-}
 {- Generated by pugs-DrIFT (Automatic class derivations for Haskell) -}
 {-# LINE 1 "PIR.hs" #-}
 {-|
@@ -979,8 +980,7 @@
 
 instance YAML Doc where
     asYAML = asYAML . render
-instance Typeable Doc where
-    typeOf _ = typeOf ()
+deriving instance Typeable Doc
 
 ------------------------------------------------------------------------
 {-* Generated by DrIFT : Look, but Don't Touch. *-}
diff --git a/src/Language/PIR/Emit.hs b/src/Language/PIR/Emit.hs
--- a/src/Language/PIR/Emit.hs
+++ b/src/Language/PIR/Emit.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 module Language.PIR.Emit (
     Emit(..),
     nested, eqSep, commaSep,
@@ -8,8 +9,10 @@
     emit :: x -> Doc
     -- emit x = error ("Unrecognized construct: " ++ show x)
 
+#if ! MIN_VERSION_pretty(1, 1, 2)
 instance Eq Doc where
     x == y = (render x) == (render y)
+#endif
 
 instance Emit String where
     emit = text
