[GHC] #2822: Arity expansion not working right

GHC trac at galois.com
Wed Jan 14 05:14:14 EST 2009


#2822: Arity expansion not working right
-----------------------------------------+----------------------------------
    Reporter:  simonpj                   |        Owner:                  
        Type:  run-time performance bug  |       Status:  new             
    Priority:  normal                    |    Milestone:  6.10 branch     
   Component:  Compiler                  |      Version:  6.10.1          
    Severity:  normal                    |   Resolution:                  
    Keywords:                            |   Difficulty:  Unknown         
    Testcase:                            |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple          |  
-----------------------------------------+----------------------------------
Comment (by batterseapower):

 This is happening because at the time we compile GHC.Handle, the Prelude
 module has not yet been compiled. This means that Prelude.catch is
 pesimistically assumed to have an arity of 0, so openFile can only have an
 arity as large as the number of leading lambdas it has - i.e. 2.

 I don't think there is a clean solution for this without whole-program
 compilation.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2822#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list