[GHC] #10650: Can't define GHCi :def macro with NoImplicitPrelude on
GHC
ghc-devs at haskell.org
Mon Jul 20 00:46:34 UTC 2015
#10650: Can't define GHCi :def macro with NoImplicitPrelude on
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.10.1
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: #8640 | Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by rwbarton):
* keywords: => newcomer
Comment:
These references to `String` and `IO` are from the expression that is
built in `InteractiveUI.defineMacro`, see the comment:
{{{
-- > ghciStepIO . definition :: String -> IO String
}}}
`RdrName` is a name that is not necessarily bound to a particular module.
In this setting in ghci it only makes sense to use the `String` from the
real `Prelude`. I'm not terribly familiar with this part of the compiler,
but I imagine it is an easy local fix in `defineMacro`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10650#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list