Skip to content

Arity expansion not working right

With GHC 6.10, the arity of GHC.Handle.openFile is reported as 2. But its definition is

  openFile fp im = Prelude.catch (...) (...)

and Prelude.catch has arity 3. Somehow openFile isn't getting eta-expanded properly.

It's not a huge deal, but arity expansion is an important optimisation so I want to track places it isn't happening.

Trac metadata
Trac field Value
Version 6.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information