summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-09-23 21:21:45 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2017-09-24 15:19:01 +0800
commitd7b260fef51564a1c87838df391d1367207d9e12 (patch)
tree86daeb900ae7f932fdaf9ec9609f75f31e1c153a /utils
parentd55961262be1b6bbacea0cd6864346f8822ee99b (diff)
downloadhaskell-d7b260fef51564a1c87838df391d1367207d9e12.tar.gz
[Semigroup] fix genapply
Summary: The SMP causes <> to be exported from Prelude by default. When building HEAD with HEAD, genapply suffers from <> being imported from Prelude. Reviewers: hvr, bgamari, austin Reviewed By: hvr Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4015
Diffstat (limited to 'utils')
-rw-r--r--utils/genapply/Main.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/genapply/Main.hs b/utils/genapply/Main.hs
index 90ae5d7ac0..9248c224b8 100644
--- a/utils/genapply/Main.hs
+++ b/utils/genapply/Main.hs
@@ -19,6 +19,10 @@ module Main(main) where
-- Needed for TAG_BITS
#include "../../includes/MachDeps.h"
+#if MIN_VERSION_base(4,11,0)
+import Prelude hiding ((<>))
+#endif
+
import Text.PrettyPrint
import Data.Word
import Data.Bits