summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2017-09-22 13:03:49 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2017-09-22 13:04:15 +0200
commit2f10438342192710025bdbe7e4abbf0aa0278081 (patch)
tree989bbfae220b4d22d0c4143e16054416e298d36e
parent5a8b8434bd79e5597a66a2779012082e369b340b (diff)
downloadhaskell-2f10438342192710025bdbe7e4abbf0aa0278081.tar.gz
Fix build with GhcWithInterpreter=NO
This is a consequence of NoImplicitPrelude which was introduced in f63bc730c7ea42ca6882f8078eb86be8bf1cc6ad.
-rw-r--r--compiler/typecheck/TcPluginM.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/typecheck/TcPluginM.hs b/compiler/typecheck/TcPluginM.hs
index cc0c7a1bf2..fe35c4339e 100644
--- a/compiler/typecheck/TcPluginM.hs
+++ b/compiler/typecheck/TcPluginM.hs
@@ -190,4 +190,7 @@ setEvBind :: EvBind -> TcPluginM ()
setEvBind ev_bind = do
tc_evbinds <- getEvBindsTcPluginM
unsafeTcPluginTcM $ TcM.addTcEvBind tc_evbinds ev_bind
+#else
+-- this dummy import is needed as a consequence of NoImplicitPrelude
+import GhcPrelude ()
#endif