
#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