Re: Unicode windows console output.

2010-11-03 Thread Krasimir Angelov
It is possible to output some non Latin1 symbols if you use the wide string API but not all of them. Basically the console supports all European language but nothing else - Latin, Cyrillic and Greek. 2010/11/2 David Sankel cam...@gmail.com: Is there a ghc wontfix bug ticket for this? Perhaps we

Re: link problem under macosx

2010-11-03 Thread Christian Maeder
Am 02.11.2010 18:03, schrieb Thorkil Naur: Hello, On Tue, Nov 02, 2010 at 01:03:04PM +0100, Christian Maeder wrote: ... Are there better workarounds? I am not sure about that, I assume that you have looked at http://hackage.haskell.org/trac/ghc/ticket/4068? no, I found Simon Michael's

RE: MonoLocalBinds and darcs

2010-11-03 Thread Simon Peyton-Jones
| Make sure you are using RC2 of the compiler, from what I remember RC1 | required signatures it shouldn't have, or enabled MonoLocalBinds more | than it should - RC2 required less signatures. However, your code | could well just be heavily using the relevant features. | | I was using

Re: Unicode windows console output.

2010-11-03 Thread Max Bolingbroke
On 2 November 2010 21:05, David Sankel cam...@gmail.com wrote: Is there a ghc wontfix bug ticket for this? Perhaps we can make a small C test case and send it to the Microsoft people. Some[1] are reporting success with Unicode console output. I confirmed that I can output Chinese unicode from

Re[2]: Unicode windows console output.

2010-11-03 Thread Bulat Ziganshin
Hello Max, Wednesday, November 3, 2010, 1:26:50 PM, you wrote: 1. You need to use chcp 65001 to set the console code page to UTF8 2. It is very likely that your Windows console won't have the fonts required to actually make sense of the output. Pipe the output to foo.txt. If you open this

Re: Loop optimisation with identical counters

2010-11-03 Thread Christian Hoener zu Siederdissen
Thanks, I'll do some measurements on this with ghc7. Gruss, Christian On 11/02/2010 01:23 PM, Simon Marlow wrote: On 02/11/2010 08:17, Christian Höner zu Siederdissen wrote: Hi, is the following problem a job for ghc or the code generation backend (llvm)? We are given this program: {-#

Re: Loop optimisation with identical counters

2010-11-03 Thread Roman Leshchinskiy
On 3 Nov 2010, at 10:45, Christian Hoener zu Siederdissen choe...@tbi.univie.ac.at wrote: Thanks, I'll do some measurements on this with ghc7. Gruss, Christian On 11/02/2010 01:23 PM, Simon Marlow wrote: On 02/11/2010 08:17, Christian Höner zu Siederdissen wrote: Hi, is the

Re: link problem under macosx

2010-11-03 Thread John Lato
On Wed, Nov 3, 2010 at 9:55 AM, Christian Maeder christian.mae...@dfki.dewrote: Am 02.11.2010 18:03, schrieb Thorkil Naur: Hello, On Tue, Nov 02, 2010 at 01:03:04PM +0100, Christian Maeder wrote: ... Are there better workarounds? I am not sure about that, I assume that you have

Re: Loop optimisation with identical counters

2010-11-03 Thread Roman Leshchinskiy
LLVM doesn't eliminate the counters. FWIW, fixing this would improve performance of stream fusion code quite a bit. It's very easy to do in Core. Roman On 3 Nov 2010, at 10:45, Christian Hoener zu Siederdissen choe...@tbi.univie.ac.at wrote: Thanks, I'll do some measurements on this with

Re: link problem under macosx

2010-11-03 Thread John Lato
From: Simon Michael si...@joyful.com On 11/2/10 10:20 AM, John Lato wrote: Since Apple seems disinclined to fix the system's libiconv, and macports projects refuse to use it, the only real solution is to use either HP without macports or the macports GHC without HP. Personally I chose

Re: MonoLocalBinds and darcs

2010-11-03 Thread Ian Lynagh
On Wed, Nov 03, 2010 at 10:10:53AM +, Simon Peyton-Jones wrote: Well, I'm aware that it's a compromise. I don't know how to do a bang-up principled job of typechecking local polymorphism, so GHC does a best-effort job. In fact best effort is pretty good, and it's not hard to

Re: Loop optimisation with identical counters

2010-11-03 Thread Christian Hoener zu Siederdissen
Is there a ticket for this (didn't find one)? Or should there be? For some reason, I'd like to see this in ghc ;-) Gruss, Christian On 11/03/2010 11:54 AM, Roman Leshchinskiy wrote: LLVM doesn't eliminate the counters. FWIW, fixing this would improve performance of stream fusion code quite a

generating C stubs with GHC API

2010-11-03 Thread Victor Nazarov
I would like to get access to functions exported from Haskell module and to generate custom stubs for them using GHC API. As I understand, I need to obtain a list of ForeignDecl's (data structure defined in HsDecls GHC module) for given source module. How to achieve this with GHC API? -- Victor

Re: Fixing LDAP lib compilation on OpenBSD

2010-11-03 Thread Julien Dessaux
Hi, Thank you very much, I managed to achieve the conditional compilation as you describe. Now I am investigating which macro named is most common. In this matter it seems that the OpenLDAP folks have renamed the macro themselves from version 2.4. The OpenBSD folks are still in 2.3 (after the

Re: Unicode windows console output.

2010-11-03 Thread David Sankel
On Wed, Nov 3, 2010 at 9:00 AM, Simon Marlow marlo...@gmail.com wrote: On 03/11/2010 10:36, Bulat Ziganshin wrote: Hello Max, Wednesday, November 3, 2010, 1:26:50 PM, you wrote: 1. You need to use chcp 65001 to set the console code page to UTF8 2. It is very likely that your Windows

Re: [Haskell-cafe] change in overlapping instance behavior between GHC 6.12 and GHC 7 causes compilation failure

2010-11-03 Thread David Fox
I would love to know the answer to this. On Tue, Nov 2, 2010 at 3:36 PM, Jeremy Shaw jer...@n-heptane.com wrote: Hello, I have a module, XMLGenerator, which has some overlapping instances. I have a second module, Test, which imports that module and also adds some more overlapping instances.