[commit: ghc] master: Fix build with GhcWithInterpreter=NO (2f10438)

git at git.haskell.org git at git.haskell.org
Fri Sep 22 11:06:01 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2f10438342192710025bdbe7e4abbf0aa0278081/ghc

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

commit 2f10438342192710025bdbe7e4abbf0aa0278081
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Fri Sep 22 13:03:49 2017 +0200

    Fix build with GhcWithInterpreter=NO
    
    This is a consequence of NoImplicitPrelude which was introduced
    in f63bc730c7ea42ca6882f8078eb86be8bf1cc6ad.


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

2f10438342192710025bdbe7e4abbf0aa0278081
 compiler/typecheck/TcPluginM.hs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler/typecheck/TcPluginM.hs b/compiler/typecheck/TcPluginM.hs
index cc0c7a1..fe35c43 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



More information about the ghc-commits mailing list