#5673: GHCi ignores {-# LANGUAGE OverloadedStrings #-}
--------------------+-------------------------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 7.0.4 | Resolution:
Keywords: | Testcase:
Blockedby: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Other |
--------------------+-------------------------------------------------------
Changes (by nomeata):
* status: closed => new
* resolution: invalid =>
Comment:
I agree with erikd here. The documentation says
> GHCi has loaded the Main module, and the prompt has changed to “*Main>”
to indicate that the current context for expressions typed at the prompt
is the Main module we just loaded.
so it can be expected that code entered at the ghci prompt behaves as if
it were put in the loaded module.
With the new support for top-level-declarations in ghci, this issue will
also arise with the numerous pragmas affecting type classes. (Reopening as
advised by michalt)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5673#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs