Skip to content

Typed holes are very slow

If you type at the GHCi prompt

ghci> 3 _ 4

(which I did for #14969 (closed)), you get a multi-second pause before the error message comes out.

I think this is because the error-message generator is looking through the entire type environment. But it's really too slow.

Trac metadata
Trac field Value
Version 8.2.2
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