RE: Plans for GHC 6.10.2

2009-02-11 Thread Simon Peyton-Jones
| Ps. It is surprising that performance bugs don't get high | priority, now that distractions like extralibs are out of the | ghc picture? Generally we prioritise bugs that appear to be show-stoppers, and/or are on a tier-1 platform. Having extralibs out of the way is a help, but as

RE: Pragma not recognised when wrapped in #ifdef

2009-02-11 Thread Simon Peyton-Jones
| Perhaps CPP shouldn't be a pragma, just a command-line flag? It seems | to be the only one that affects/involves preprocessor(s). AFAICT, the | others all affect the haskell compiler stage. Yes, it does seem anomalous. I suppose the motivation is that some modules might need CPP and some not,

Re: Pragma not recognised when wrapped in #ifdef

2009-02-11 Thread Colin Adams
Is there still a need for CPP now that Template Haskell exists? 2009/2/11 Simon Peyton-Jones simo...@microsoft.com: | Perhaps CPP shouldn't be a pragma, just a command-line flag? It seems | to be the only one that affects/involves preprocessor(s). AFAICT, the | others all affect the haskell

Re: Pragma not recognised when wrapped in #ifdef

2009-02-11 Thread Neil Mitchell
Hi Is there still a need for CPP now that Template Haskell exists? Yes. For a start you might need CPP to switch between Haskell compilers that do and don't support Template Haskell! Both technologies do different things, CPP is great for conditional compilation based on compiler

Re: Pragma not recognised when wrapped in #ifdef

2009-02-11 Thread Duncan Coutts
On Tue, 2009-02-10 at 13:43 +, Simon Marlow wrote: Simon Peyton-Jones wrote: I'm guessing a bit here, but it looks as if you intend this: * GHC should read Foo.hs, and see {-# LANGUAGE CPP #-} * Then it should run cpp * Then it should look *again* in the result of running cpp,

Re: hsc2hs and HsFFI.h

2009-02-11 Thread Malcolm Wallace
Currently, hsc2hs (as shipped with GHC) cannot be used with just hsc2hs Foo.hsc as it cannot find HsFFI.h The hsc2hs repo includes a shell script (yes, I know, no good on Windows) called hsc2hs.wrapper that already adds some default arguments. (nhc98 has a modified version of the script,

bug in ghc specialiser?

2009-02-11 Thread Malcolm Wallace
Here is an apparent bug in ghc's specialisation rules. The rewrite rule generated by a SPECIALISE pragma seems to want to pattern-match on exact dictionaries (as well as types). But the compiler is not necessarily able to fully resolve dictionaries before the rules are supposed to fire. First,

RE: bug in ghc specialiser?

2009-02-11 Thread Simon Peyton-Jones
That should not happen. Can you boil out a test case and make a Trac ticket? When I try the same thing it works: Spec.hs: f :: Num a = a - a {-# SPECIALISE f :: Int - Int #-} f x = x+2 ghc -c -ddump-rules -O Spec.hs Top-level

Re: :info features

2009-02-11 Thread Remi Turk
On Tue, Feb 10, 2009 at 01:31:24PM +, Simon Marlow wrote: Remi Turk wrote: On Sat, Feb 07, 2009 at 12:39:03AM -0500, Brandon S. Allbery KF8NH wrote: On 2009 Feb 5, at 5:49, Remi Turk wrote: SPJ agreed with the idea itself, but suggested an alternative set of commands: :info Show

DPH Questions

2009-02-11 Thread James Swaine
I was wondering if anyone could point me to a more in-depth explanation of why we are (currently) restricted to using a special-purpose standard Prelude when writing vectorised code with DPH. We're prototyping using several data-parallel languages for a research project here at Northwestern

Re: DPH Questions

2009-02-11 Thread Manuel M T Chakravarty
James Swaine: I was wondering if anyone could point me to a more in-depth explanation of why we are (currently) restricted to using a special- purpose standard Prelude when writing vectorised code with DPH. The reason is simply that the standard version of the Prelude uses Haskell features