diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 ## Changelog
 
+#### 0.6.3.2
+
+- Build fixed for GHC 7.10.
+
 #### 0.6.3.1
 
 - `Build-tools` field is added to Cabal file.
diff --git a/language-lua.cabal b/language-lua.cabal
--- a/language-lua.cabal
+++ b/language-lua.cabal
@@ -3,7 +3,7 @@
 Description:
     Lua 5.2 lexer, parser and pretty-printer.
 
-Version:             0.6.3.1
+Version:             0.6.3.2
 Synopsis:            Lua parser and pretty-printer
 Homepage:            http://github.com/osa1/language-lua
 Bug-reports:         http://github.com/osa1/language-lua/issues
@@ -63,7 +63,7 @@
                      directory,
                      filepath,
                      language-lua,
-                     parsec >= 3.1.3 && < 3.2,
+                     parsec >= 3.1.8 && < 3.2,
                      QuickCheck,
                      tasty,
                      tasty-hunit,
diff --git a/src/Language/Lua/PrettyPrinter.hs b/src/Language/Lua/PrettyPrinter.hs
--- a/src/Language/Lua/PrettyPrinter.hs
+++ b/src/Language/Lua/PrettyPrinter.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE FlexibleInstances, CPP #-}
 
 -- | Lua pretty-printer.
 module Language.Lua.PrettyPrinter
@@ -9,7 +9,12 @@
   , LPretty
   ) where
 
+#if __GLASGOW_HASKELL__ >= 710
+import           Prelude                 hiding (EQ, GT, LT, (<$>))
+#else
 import           Prelude                 hiding (EQ, GT, LT)
+#endif
+
 import           Text.PrettyPrint.Leijen hiding ((<$>))
 
 import           Language.Lua.Syntax
diff --git a/src/Text/PrettyPrint/Leijen.hs b/src/Text/PrettyPrint/Leijen.hs
--- a/src/Text/PrettyPrint/Leijen.hs
+++ b/src/Text/PrettyPrint/Leijen.hs
@@ -1,5 +1,6 @@
 {-# OPTIONS_GHC -w #-}
 {-# OPTIONS_HADDOCK hide #-}
+{-# LANGUAGE CPP #-}
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Text.PrettyPrint.Leijen
@@ -115,6 +116,9 @@
         ) where
 
 import System.IO (Handle,hPutStr,hPutChar,stdout)
+#if __GLASGOW_HASKELL__ >= 710
+import Prelude hiding ((<$>))
+#endif
 
 infixr 5 </>,<//>,<$>,<$$>
 infixr 6 <>,<+>
diff --git a/tests/Main.hs b/tests/Main.hs
--- a/tests/Main.hs
+++ b/tests/Main.hs
@@ -146,9 +146,6 @@
     printAndParseEq :: Block -> Property
     printAndParseEq b = Right b === (P.parseText P.chunk . show . pprint) b
 
-instance Eq P.ParseError where
-    _ == _ = False
-
 -- * Arbitrary instances
 
 newtype LuaString = LuaString { unwrapLuaString :: String } deriving (Generic)
