Re: ANNOUNCE: GHC 7.4.2 Release Candidate 1

2012-05-17 Thread Jens Petersen
On 16 May 2012 19:05, Ian Lynagh  wrote:
> We are pleased to announce the first release candidate for GHC 7.4.2:
>
>    http://www.haskell.org/ghc/dist/7.4.2-rc1/

Thanks!

I did a test scratch build on Fedora 18, which should also work on
Fedora 17 which will be released soon.

http://koji.fedoraproject.org/koji/taskinfo?taskID=4084830

If you want to try the build on Fedora the source and binary rpms can
be downloaded from:
http://kojipkgs.fedoraproject.org/scratch/petersen/task_4084830/

I also just started a test build on Fedora ARM but that will take a
little longer to finish.

Jens

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Potential GSoC proposal: Reduce the speed gap between 'ghc -c' and 'ghc --make'

2012-05-17 Thread Ryan Newton
Mikhail's original question was about loading interface files for entire
packages with mmap.

As a wild thought experiment, if GHC had a saved-heaps capability, I
believe that would avoid the Unique issues with mmap'ing individual data
structures that Simon mentioned.  How about if each whole-package interface
were then a GHC saved heap that, when booted, would become an "interface"
server that would communicate with, and be shared by, other GHC build
server processes.

  -Ryan


On Fri, Apr 27, 2012 at 4:57 AM, Simon Marlow  wrote:

> On 26/04/2012 23:32, Johan Tibell wrote:
>
>> On Thu, Apr 26, 2012 at 2:34 PM, Mikhail Glushenkov
>>   wrote:
>>
>>> Thanks. I'll look into how to optimise .hi loading by more traditional
>>> means, then.
>>>
>>
>> Lennart is working on speeding up the binary package (which I believe
>> is used to decode the .hi files.) His work might benefit this effort.
>>
>
> We're still using our own Binary library in GHC.  There's no good reason
> for that, unless using the binary package would be a performance
> regression. (we don't know whether that's the case or not, with the current
> binary).
>
> Cheers,
>Simon
>
>
>
>
> __**_
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.**org 
> http://www.haskell.org/**mailman/listinfo/glasgow-**haskell-users
>
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: How to force recompilation of preprocessed files (-F -pgmF ..)

2012-05-17 Thread Simon Hengel
Hi Etienne,
thanks for your reply.

> You can use Template Haskell's addDependentFile to register a
> dependency on external files.
> 
> http://hackage.haskell.org/packages/archive/template-haskell/2.7.0.0/doc/html/Language-Haskell-TH-Syntax.html#v:addDependentFile

That's interesting.  But from what I've tried, it seems that it does not
work with GHCi.

> You can also put -fforce-recomp in an OPTIONS_GHC pragma to ask GHC to
> always recompile the file.
> 
> {-# OPTIONS_GHC -fforce-recomp #-}

I think it's amazing, that this works with ghc --make.  But it does not
work with GHCi, I created a ticket for that [1].

Cheers,
Simon

[1] http://hackage.haskell.org/trac/ghc/ticket/6105

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: How to force recompilation of preprocessed files (-F -pgmF ..)

2012-05-17 Thread Etienne Laurin
Hello Simon,

You can use Template Haskell's addDependentFile to register a
dependency on external files.

http://hackage.haskell.org/packages/archive/template-haskell/2.7.0.0/doc/html/Language-Haskell-TH-Syntax.html#v:addDependentFile

You can also put -fforce-recomp in an OPTIONS_GHC pragma to ask GHC to
always recompile the file.

{-# OPTIONS_GHC -fforce-recomp #-}

Etienne Laurin

2012/5/17 Simon Hengel :
> Hi,
> I'm experimenting with a preprocessor to automatically generate test
> drivers[1].  The result depends on the existence of other files on the
> disk.  When files are added or removed, the test driver has to be
> regenerated.
>
> Ideally ghc would just always recompile that single file (akin to make's
> .PHONY), and it should work with ghci's :reload and with cabal.
>
> I tried to touch the file within the preprocessor, but this does not
> work.  It seems, that GHC checks the modification time only after
> preprocessing.
>
> Any ideas how to tackle this?
>
> Cheers,
> Simon
>
> [1] https://github.com/sol/hspec-discover

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


How to force recompilation of preprocessed files (-F -pgmF ..)

2012-05-17 Thread Simon Hengel
Hi,
I'm experimenting with a preprocessor to automatically generate test
drivers[1].  The result depends on the existence of other files on the
disk.  When files are added or removed, the test driver has to be
regenerated.

Ideally ghc would just always recompile that single file (akin to make's
.PHONY), and it should work with ghci's :reload and with cabal.

I tried to touch the file within the preprocessor, but this does not
work.  It seems, that GHC checks the modification time only after
preprocessing.

Any ideas how to tackle this?

Cheers,
Simon

[1] https://github.com/sol/hspec-discover

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users