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

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

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

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

Re: ANNOUNCE: GHC 7.4.2 Release Candidate 1

2012-05-17 Thread Jens Petersen
On 16 May 2012 19:05, Ian Lynagh ig...@earth.li 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.