Re: How to #include into .lhs files?

2011-02-03 Thread Conal Elliott
Thanks, Daniel. I'm still stumped. When I say #include "B.hs" in a .hs file, all works fine, but when in a .lhs file I get "error: B.hs: No such file or directory". The file B.hs is in the same directory as the including file, which is the current directory for ghci. Same situation with ghc. If

Re: 4221 on new codegen

2011-02-03 Thread ezyang
Assuming that runFuelIO is the only mechanism by which fueled execution is performed, the only file using fuel is CmmCPS.hs. This file performs: 1. Proc point analysis 2. Proc point transformation 3. Spills and reloads 4. Late reloads 5. Dead assignment elimination 6. Stub

Re: 4221 on new codegen

2011-02-03 Thread Simon Marlow
On 03/02/2011 10:07, ezyang wrote: Excerpts from Simon Marlow's message of Thu Feb 03 04:05:04 -0500 2011: I wonder if the fuel is also being used by "essential" transformations, like the CPS pass? That seems likely. Shall I try to figure out what the essential transformations are and give the

Re: How to #include into .lhs files?

2011-02-03 Thread Daniel Fischer
On Thursday 03 February 2011 10:33:23, Conal Elliott wrote: > Does anyone have a working example of #include'ing Haskell code into a > bird-tracks-style .lhs file with GHC? Every way I try leads to parsing > errors. Is there documentation about how it's supposed to work? > > Help much appreciated.

Re: 4221 on new codegen

2011-02-03 Thread ezyang
Excerpts from Simon Marlow's message of Thu Feb 03 04:05:04 -0500 2011: > I wonder if the fuel is also being used by "essential" transformations, > like the CPS pass? That seems likely. Shall I try to figure out what the essential transformations are and give them infinite fuel? Edward

How to #include into .lhs files?

2011-02-03 Thread Conal Elliott
Does anyone have a working example of #include'ing Haskell code into a bird-tracks-style .lhs file with GHC? Every way I try leads to parsing errors. Is there documentation about how it's supposed to work? Help much appreciated. - Conal ___ Glasgow-has

Re: 4221 on new codegen

2011-02-03 Thread Simon Marlow
I wonder if the fuel is also being used by "essential" transformations, like the CPS pass? Cheers, Simon On 03/02/2011 09:01, Simon Peyton-Jones wrote: Correct. The Cmm optimiser is supposed to make correctness preserving transformations. The idea of the "fuel" is that you can bina

RE: 4221 on new codegen

2011-02-03 Thread Simon Peyton-Jones
Correct. The Cmm optimiser is supposed to make correctness preserving transformations. The idea of the "fuel" is that you can binary chop your way to a situation where Fuel = 0-143Program works Fuel = 144 Program crashes Then look at the single transformation that introduces the cras

Re: GHCi+Cairo, Windows

2011-02-03 Thread Alexey Shumitsky
On Thu, Feb 3, 2011 at 9:15 AM, Axel Simon wrote: > Hi Alexey, > > Sorry about the slow feedback. I know that on Windows our Gtk2HsSetup.hs > magic file does some name mangling that is necessary because the binary Gtk > installer has some oddly named libraries. It might be that we didn't get > thi

Re: GHCi+Cairo, Windows

2011-02-03 Thread Axel Simon
Hi Alexey, On 01.02.2011, at 16:47, Alexey Shumitsky wrote: Hi, I have problem with ghci+cairo on windows. When I try to load, for example like this "ghci -package cairo" it fails with the following error: Loading package random-1.0.0.2 ... linking ... done. Loading package haskell98 ... link