[commit: packages/pretty] large_docs: Fix compilation under GHC 7.10 (04ca57e)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:49:58 UTC 2015


Repository : ssh://git@git.haskell.org/pretty

On branch  : large_docs
Link       : http://git.haskell.org/packages/pretty.git/commitdiff/04ca57e32ac6474fbbdcf7f0a8dcd4ba8396fa89

>---------------------------------------------------------------

commit 04ca57e32ac6474fbbdcf7f0a8dcd4ba8396fa89
Author: David Terei <code at davidterei.com>
Date:   Fri Dec 26 00:01:42 2014 -0800

    Fix compilation under GHC 7.10


>---------------------------------------------------------------

04ca57e32ac6474fbbdcf7f0a8dcd4ba8396fa89
 src/Text/PrettyPrint/HughesPJ.hs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Text/PrettyPrint/HughesPJ.hs b/src/Text/PrettyPrint/HughesPJ.hs
index aac7de0..6646b38 100644
--- a/src/Text/PrettyPrint/HughesPJ.hs
+++ b/src/Text/PrettyPrint/HughesPJ.hs
@@ -79,7 +79,9 @@ module Text.PrettyPrint.HughesPJ (
 
 import Control.DeepSeq ( NFData(rnf) )
 import Data.Function   ( on )
-import Data.Monoid     ( Monoid(mempty, mappend) )
+#if __GLASGOW_HASKELL__ < 709
+import Data.Monoid     ( Monoid(mempty, mappend)  )
+#endif
 import Data.String     ( IsString(fromString) )
 
 import GHC.Generics



More information about the ghc-commits mailing list