#5673: GHCi ignores {-# LANGUAGE OverloadedStrings #-}
--------------------+-------------------------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: closed
Priority: normal | Component: GHCi
Version: 7.0.4 | Resolution: invalid
Keywords: | Testcase:
Blockedby: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Other |
--------------------+-------------------------------------------------------
Changes (by michalt):
* status: new => closed
* resolution: => invalid
Comment:
I think the pragma only refers to the code in the file and not to what you
write in the ghci prompt. You can use `-XOverloadedStrings` to make it
work:
{{{
> ghci -XOverloadedStrings Test.hs
GHCi, version 7.2.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
[1 of 1] Compiling Main ( Test.hs, interpreted )
Ok, modules loaded: Main.
*Main> newlineCount "a\nb\nc\n"
Loading package bytestring-0.9.2.0 ... linking ... done.
3
*Main>
}}}
So I don't think there's any bug/problem here (please reopen if you don't
agree).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5673#comment:1>
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