Re: [Haskell-cafe] question about GHC and Unicode

2008-04-30 Thread Brandon S. Allbery KF8NH
On Apr 29, 2008, at 7:19 PM, Albert Y. C. Lai wrote: John Goerzen wrote: That's a wonderful interface, but unfortunately it appears to assume that your Unicode I/O is always UTF-8, and never UTF-16. I happen to deal with more UTF-16 data than UTF-8 over here at the moment.

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-30 Thread John Goerzen
On Wed April 30 2008 11:30:05 am Brandon S. Allbery KF8NH wrote: On Apr 29, 2008, at 7:19 PM, Albert Y. C. Lai wrote: John Goerzen wrote: That's a wonderful interface, but unfortunately it appears to assume that your Unicode I/O is always UTF-8, and never UTF-16. I happen to deal with

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-29 Thread Albert Y. C. Lai
John Goerzen wrote: That's a wonderful interface, but unfortunately it appears to assume that your Unicode I/O is always UTF-8, and never UTF-16. I happen to deal with more UTF-16 data than UTF-8 over here at the moment. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/encoding

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-28 Thread John Goerzen
On Sun April 27 2008 2:02:25 pm Don Stewart wrote: zefria: In GHC there's a GHC.Unicode library, but for a string such as *AIOO, a GHC compiled program prints it as a string of unknown characters, and in the interpreter, the string evaluates to a string of escape sequences instead of

[Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Daniel Gee
In GHC there's a GHC.Unicode library, but for a string such as ΧΑΟΣΣ, a GHC compiled program prints it as a string of unknown characters, and in the interpreter, the string evaluates to a string of escape sequences instead of displaying properly. Is there a way to get/activate unicode support in

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Daniel Gee
On Sun, Apr 27, 2008 at 1:02 PM, Don Stewart [EMAIL PROTECTED] wrote: GHC supports unicode internally, and String and Char are all unicode. To do unicode IO however, you need to use the utf8-string package: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string Just

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Don Stewart
zefria: On Sun, Apr 27, 2008 at 1:02 PM, Don Stewart [EMAIL PROTECTED] wrote: GHC supports unicode internally, and String and Char are all unicode. To do unicode IO however, you need to use the utf8-string package:

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Ian Lynagh
On Sun, Apr 27, 2008 at 12:29:34PM -0700, Donald Bruce Stewart wrote: Ian Lynagh wrote a pure haskell readline implementation a while ago, I think that was Malcolm Wallace. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Daniel Gee
ah ha, yes. I seem to have found it here: http://www.haskell.org/pipermail/glasgow-haskell-bugs/2001-April/000401.html I'll use this as a base. Many thanks to the both of you. I'll be sure to submit it to Hackage for others to enjoy if I end up adding some capability to it.

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Don Stewart
zefria: ah ha, yes. I seem to have found it here: http://www.haskell.org/pipermail/glasgow-haskell-bugs/2001-April/000401.html I'll use this as a base. Many thanks to the both of you. I'll be sure to submit it to Hackage for others to enjoy if I end up adding some capability to it. yeah, a

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Malcolm Wallace
Ian Lynagh wrote a pure haskell readline implementation a while ago, I think that was Malcolm Wallace. ... and it is part of the readline package! See System.Console.SimpleLineEditor. Needless to say, it is far from perfect, but does give some basic facilities. There are lots of ways

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Duncan Coutts
On Sun, 2008-04-27 at 21:44 +0100, Malcolm Wallace wrote: Ian Lynagh wrote a pure haskell readline implementation a while ago, I think that was Malcolm Wallace. ... and it is part of the readline package! See System.Console.SimpleLineEditor. Needless to say, it is far from