[commit: packages/bytestring] master: Fix GHC 7.0.1 build by working around Trac #4498 (0671e33)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:31:33 UTC 2017
Repository : ssh://git@git.haskell.org/bytestring
On branch : master
Link : http://git.haskell.org/packages/bytestring.git/commitdiff/0671e336d222b547b0c82974990f5aacddff963f
>---------------------------------------------------------------
commit 0671e336d222b547b0c82974990f5aacddff963f
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Sun Sep 4 12:05:24 2016 -0400
Fix GHC 7.0.1 build by working around Trac #4498
>---------------------------------------------------------------
0671e336d222b547b0c82974990f5aacddff963f
Data/ByteString/Builder/Internal.hs | 4 ++++
Data/ByteString/Builder/Prim.hs | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/Data/ByteString/Builder/Internal.hs b/Data/ByteString/Builder/Internal.hs
index 970928d..90b35c6 100644
--- a/Data/ByteString/Builder/Internal.hs
+++ b/Data/ByteString/Builder/Internal.hs
@@ -1,4 +1,8 @@
{-# LANGUAGE ScopedTypeVariables, CPP, BangPatterns, RankNTypes #-}
+#if __GLASGOW_HASKELL__ == 700
+-- This is needed as a workaround for an old bug in GHC 7.0.1 (Trac #4498)
+{-# LANGUAGE MonoPatBinds #-}
+#endif
#if __GLASGOW_HASKELL__ >= 703
{-# LANGUAGE Unsafe #-}
#endif
diff --git a/Data/ByteString/Builder/Prim.hs b/Data/ByteString/Builder/Prim.hs
index 22a4b8f..777b309 100644
--- a/Data/ByteString/Builder/Prim.hs
+++ b/Data/ByteString/Builder/Prim.hs
@@ -1,5 +1,9 @@
{-# LANGUAGE CPP, BangPatterns, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+#if __GLASGOW_HASKELL__ == 700
+-- This is needed as a workaround for an old bug in GHC 7.0.1 (Trac #4498)
+{-# LANGUAGE MonoPatBinds #-}
+#endif
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Trustworthy #-}
#endif
More information about the ghc-commits
mailing list