[GHC] #1113: GHCi 6.6 and unicode at the REPL
GHC
trac at galois.com
Mon Jan 22 18:16:53 EST 2007
#1113: GHCi 6.6 and unicode at the REPL
------------------------------------------+---------------------------------
Reporter: greg at sleepingsquirrel.org | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.6
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: x86 | Os: Linux
------------------------------------------+---------------------------------
While the following definition works fine in a source file (that's a
Unicode [http://www.fileformat.info/info/unicode/char/00b1/index.htm
U+00B1 PLUS-MINUS SIGN])...
{{{
a ± b = (a+b, a-b)
}}}
...I get an error when trying entering it at the REPL prompt...
{{{
Prelude> let a ± b = (a+b, a-b)
<interactive>:1:4: Parse error in pattern
Prelude>
}}}
...and using ":t" to display results with something other than ASCII type
variables doesn't seem to work quite right. Here's an example program...
{{{
map' :: (α -> β) -> [α] -> [β]
map' _ [] = []
map' f (x:xs) = (f x) : map f xs
}}}
...and here's what the results looks like on my terminal...
http://sleepingsquirrel.org/haskell/ghci_unicode.jpg
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1113>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list