Skip to content

Can't use type wildcard infix

This fails:

foo :: Int `_a` Bool
foo = Right True

But moving _a to be prefix works. I observe the same behavior with an unnamed type wildcard.

This was discovered while poking around in the renamer, not in real code!

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