Re: Plans for GHC 6.10.2

2009-02-10 Thread Manuel M T Chakravarty
Ian wrote, This is just a quick summary of our plans for GHC 6.10.2. While it is possible that we will fix some others, for the 6.10.2 release we mainly intend to look at the high-priority bugs in the 6.10.2 milestone. They are listed here: http://hackage.haskell.org/trac/ghc/query?stat

Re: Plans for GHC 6.10.2

2009-02-10 Thread Ian Lynagh
On Tue, Feb 10, 2009 at 07:19:53PM -, Claus Reinke wrote: > > I noticed that http://hackage.haskell.org/trac/ghc/ticket/1502 > keeps getting pushed back (now 2 years old!). We'll do this for the new build system, as we need to rewrite the code to put gcc etc in the right place anyway. Than

Re: hsc2hs and HsFFI.h

2009-02-10 Thread Claus Reinke
Q: is the information that --print-libdir returns available programmatically to Haskell code? $ ghc --print-libdir C:\ghc\ghc-6.11.20090118 $ ghc -e GHC.Paths.libdir "C:\\ghc\\ghc-6.11.20090118" $ ghc -e ':browse GHC.Paths' docdir :: FilePath ghc :: FilePath ghc_pkg ::

Re: Plans for GHC 6.10.2

2009-02-10 Thread Claus Reinke
This is just a quick summary of our plans for GHC 6.10.2. .. If there is a bug not in that list that is causing you major problems, then please let us know. Hi Ian, I noticed that http://hackage.haskell.org/trac/ghc/ticket/1502 keeps getting pushed back (now 2 years old!). Perhaps the summary

Re: Pragma not recognised when wrapped in #ifdef

2009-02-10 Thread Brandon S. Allbery KF8NH
On 2009 Feb 10, at 8:55, Alistair Bayley wrote: 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. Or require the CPP pragma to be the first thing in the file,

Re: hsc2hs and HsFFI.h

2009-02-10 Thread Sigbjorn Finne
Hi Ian, it may encompass some of your suggested approaches below, but have you considered either: - add "--print-hsc-options" to the GHC driver, which is akin to "--print-libdir". A ghc-installed hsc2hs shell wrapper or as you suggest have 'hsc2hs' probe the compiler it is using would then

RE: Plans for GHC 6.10.2

2009-02-10 Thread Simon Peyton-Jones
Friends | While it is possible that we will fix some others, for the 6.10.2 | release we mainly intend to look at the high-priority bugs in the 6.10.2 | milestone. They are listed here: | | http://hackage.haskell.org/trac/ghc/query?status=new&status=assigned&status=reopened | &priority=high&prior

hsc2hs and HsFFI.h

2009-02-10 Thread Ian Lynagh
Hi all, Currently, hsc2hs (as shipped with GHC) cannot be used with just hsc2hs Foo.hsc as it cannot find HsFFI.h (http://hackage.haskell.org/trac/ghc/ticket/2897). To make it work you need to run something like hsc2hs -I /usr/lib/ghc-6.10.1/include Foo.hsc (it also works when called by C

Plans for GHC 6.10.2

2009-02-10 Thread Ian Lynagh
Hi all, This is just a quick summary of our plans for GHC 6.10.2. While it is possible that we will fix some others, for the 6.10.2 release we mainly intend to look at the high-priority bugs in the 6.10.2 milestone. They are listed here: http://hackage.haskell.org/trac/ghc/query?status=ne

Re: Pragma not recognised when wrapped in #ifdef

2009-02-10 Thread Alistair Bayley
2009/2/10 Simon Peyton-Jones : > 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, > to see the now-revealed {-# LANGUAGE DeriveDataTypeabl

Re: Pragma not recognised when wrapped in #ifdef

2009-02-10 Thread Simon Marlow
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, to see the now-revealed {-# LANGUAGE DeriveDataTypeable #-} I'm pr

Re: :info features

2009-02-10 Thread Simon Marlow
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-- See class definition only :instances Show -- See insta

RE: Pragma not recognised when wrapped in #ifdef

2009-02-10 Thread Simon Peyton-Jones
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, to see the now-revealed {-# LANGUAGE DeriveDataTypeable #-} I'm pretty sure we don't do that;

Re: Pragma not recognised when wrapped in #ifdef

2009-02-10 Thread Alistair Bayley
> {-# LANGUAGE CPP #-} > #ifdef PRAGMA_DERIVE_TYPEABLE > {-# LANGUAGE DeriveDataTypeable #-} > #else > {-# OPTIONS -fglasgow-exts #-} > #endif > -- This file is Test/Fail.hs. > -- ghc --make -optP-DPRAGMA_DERIVE_TYPEABLE -XCPP Test.Fail > module Test.Fail where > import Data.Generics > data Fail =

Byte in list

2009-02-10 Thread Aswad, Mustafa K
Hi dear I need to calculate the size of alist consist of n element (("I(a*b)" , "I(b) , I(a)") in 32 bit machine ? -- Heriot-Watt University is a Scottish charity registered under charity number SC000278. ___ Glasgow-haskell-users mailing list Gl