language-lua 0.6.3.1 → 0.6.3.2
raw patch · 5 files changed
+16/−6 lines, 5 filesdep ~parsecPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: parsec
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- language-lua.cabal +2/−2
- src/Language/Lua/PrettyPrinter.hs +6/−1
- src/Text/PrettyPrint/Leijen.hs +4/−0
- tests/Main.hs +0/−3
CHANGELOG.md view
@@ -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.
language-lua.cabal view
@@ -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,
src/Language/Lua/PrettyPrinter.hs view
@@ -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
src/Text/PrettyPrint/Leijen.hs view
@@ -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 <>,<+>
tests/Main.hs view
@@ -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)