[GHC] #10857: "ghci -XMonomorphismRestriction" doesn't turn on the monomorphism restriction
GHC
ghc-devs at haskell.org
Mon Sep 21 17:24:35 UTC 2015
#10857: "ghci -XMonomorphismRestriction" doesn't turn on the monomorphism
restriction
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner: cocreature
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.10.1
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #3202, #3217 | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by thomie):
Replying to [comment:6 cocreature]:
> Your code doesn't fail because the hack only adds {{{-fimplicit-import-
qualified}}} to the DynFlags if load mode is {{{DoInteractive}}} or
{{{DoEval}}}.
But when I run `ghci`, isn't the load mode always `DoInteractive`? So
shouldn't `-fimplicit-import-qualified` also apply to modules loaded into
GHCi, as in my example? I guess it doesn't, but I don't understand why
not.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10857#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list