Re: setlocale

2008-03-13 Thread Ian Lynagh
On Fri, Mar 14, 2008 at 12:21:38AM +, Ross Paterson wrote: > On Fri, Mar 14, 2008 at 12:05:18AM +, Ian Lynagh wrote: > > On Thu, Mar 13, 2008 at 10:52:24PM +, Ross Paterson wrote: > > > On Thu, Mar 13, 2008 at 03:31:37PM -0700, Simon Marlow wrote: > > > > Setting the locale *might* have

Re: setlocale

2008-03-13 Thread Ross Paterson
On Fri, Mar 14, 2008 at 12:05:18AM +, Ian Lynagh wrote: > On Thu, Mar 13, 2008 at 10:52:24PM +, Ross Paterson wrote: > > On Thu, Mar 13, 2008 at 03:31:37PM -0700, Simon Marlow wrote: > > > Setting the locale *might* have side-effects, for instance we noticed > > > before that heap profili

Re: timer_create

2008-03-13 Thread Ian Lynagh
Hi Christian, On Thu, Mar 06, 2008 at 05:59:50PM +0100, Christian Maeder wrote: > > #define HAVE_TIMER_CREATE 1 > > Or is there a work around (apart from creating a new binary-dist using > ghc-6.6.1)? I don't think using ghc 6.6.1 will make a difference. However, if you alter mk/config.h afte

Re: setlocale

2008-03-13 Thread Ian Lynagh
On Thu, Mar 13, 2008 at 10:52:24PM +, Ross Paterson wrote: > On Thu, Mar 13, 2008 at 03:31:37PM -0700, Simon Marlow wrote: > > Setting the locale *might* have side-effects, for instance we noticed > > before that heap profiling broke in some locales because the RTS code to > > generate the

Re: ghc's trac is wedged

2008-03-13 Thread Ian Lynagh
On Thu, Mar 13, 2008 at 01:31:41PM -0700, Simon Marlow wrote: > Gregory Wright wrote: > > >This morning (13 March 2008) the ghc trac wedged reporting > > > >Trac detected an internal error: > > > >OperationalError: database is locked > > This happens from time to time for me too, usually it goes

Re: setlocale

2008-03-13 Thread Ross Paterson
On Thu, Mar 13, 2008 at 03:31:37PM -0700, Simon Marlow wrote: > Setting the locale *might* have side-effects, for instance we noticed > before that heap profiling broke in some locales because the RTS code to > generate the .hp file was using fprintf to print numbers, and the number > format

Re: Making rule application less fragile

2008-03-13 Thread Don Stewart
johan.tibell: > On Thu, Mar 13, 2008 at 11:24 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > > Hey Johan, > > > > The main thing to remember is that anything you wish to match on > > in a rule needs to not be inlined in the first pass. > > > > So to match "many" or "satisfy" robustly, you'll need:

Re: setlocale

2008-03-13 Thread Simon Marlow
Tristan Allwood wrote: I've been playing around with hs-curses and utf8, and have discovered that I need to use an ffi call at the top of my main to setlocale(LC_ALL, "") in order to get the hscurses bindings to display utf8-encoded strings correctly. If I understand correctly, the fact that I

Re: Making rule application less fragile

2008-03-13 Thread Johan Tibell
On Thu, Mar 13, 2008 at 11:24 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > Hey Johan, > > The main thing to remember is that anything you wish to match on > in a rule needs to not be inlined in the first pass. > > So to match "many" or "satisfy" robustly, you'll need: > > {-# NOINLINE [1] ma

Re: Making rule application less fragile

2008-03-13 Thread Don Stewart
Hey Johan, The main thing to remember is that anything you wish to match on in a rule needs to not be inlined in the first pass. So to match "many" or "satisfy" robustly, you'll need: {-# NOINLINE [1] many #-} For example. johan.tibell: > Hi, > > I'm trying (for the first time ever) to us

setlocale

2008-03-13 Thread Tristan Allwood
Hi, I've been playing around with hs-curses and utf8, and have discovered that I need to use an ffi call at the top of my main to setlocale(LC_ALL, "") in order to get the hscurses bindings to display utf8-encoded strings correctly. If I understand correctly, the fact that I need to do this means

Re: Understanding the undefine flags passed to gcc when linking

2008-03-13 Thread Simon Marlow
Bruce, Joseph R (Joe) wrote: Thanks Simon. That is the best answer I've received to this question in many askings. I will try to go the shared library route. Shared libraries are currently experimental - you'll probably experience problems, and parts of the infrastructure are still in flux.

Re: ghc's trac is wedged

2008-03-13 Thread Simon Marlow
Gregory Wright wrote: This morning (13 March 2008) the ghc trac wedged reporting Trac detected an internal error: with the python traceback Traceback (most recent call last): File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(r

Making rule application less fragile

2008-03-13 Thread Johan Tibell
Hi, I'm trying (for the first time ever) to use RULES pragmas to achieve some nice speedups in my bytestring parsing library. The relevant code in my library's module is: -- The module imports Control.Applicative which containes 'many' and 'some'. -- | The parser @satisfy p@ succeeds for any byt

ghc's trac is wedged

2008-03-13 Thread Gregory Wright
Hi, This morning (13 March 2008) the ghc trac wedged reporting Trac detected an internal error: with the python traceback Traceback (most recent call last): File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/var/

Re: ANN: ghc 6.8.2 from MacPorts

2008-03-13 Thread Gregory Wright
Hi Christian, On Mar 13, 2008, at 7:10 AM, Christian Maeder wrote: I was able to build ghc 6.8.2 on Leopard/ppc using the patch from http://hackage.haskell.org/trac/ghc/ticket/1958 (also below) Could you try if it works for you, too? I forgot to mention, that I had to build a bootstrapping

Re: ANN: ghc 6.8.2 from MacPorts

2008-03-13 Thread Christian Maeder
Christian Maeder wrote: > Gregory Wright wrote: >> Leopard/ppc are out of luck until for now, for reason discussed earlier >> on this list. > > I was able to build ghc 6.8.2 on Leopard/ppc using the patch from > > http://hackage.haskell.org/trac/ghc/ticket/1958 > (also below) > > Could you try i

Re: ANN: ghc 6.8.2 from MacPorts

2008-03-13 Thread Christian Maeder
Gregory Wright wrote: > Leopard/ppc are out of luck until for now, for reason discussed earlier > on this list. I was able to build ghc 6.8.2 on Leopard/ppc using the patch from http://hackage.haskell.org/trac/ghc/ticket/1958 (also below) Could you try if it works for you, too? Cheers Christian