#3741: ghci misinterprets "early" unicode characters
---------------------------------+------------------------------------------
Reporter: brian | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 6.10.4 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
It seems as if ghci misinterprets unicode characters if they occur too
early in a source file.
{{{
$ cat test.hs
--data A = A -- example will not work if this line is commented
笑 :: [a] -> Int
笑 = length
}}}
{{{
$ ghci test.hs
GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Main ( test.hs, interpreted )
test.hs:2:0:
Illegal signature in pattern: [a] -> Int 笑
Use -XScopedTypeVariables to permit it
Failed, modules loaded: none.
Prelude>
}}}
Uncommenting the first line makes the problem go away.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3741>
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