Skip to content

Doesn't suggest TypeApplications when `~` used prefix

$ ghci -ignore-dot-ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help
Prelude> :t undefined @(_ ~ _)

<interactive>:1:1: error:
    Pattern syntax in expression context: undefined@(_ (~(_)))
    Did you mean to enable TypeApplications?

It is suggested with non-~ type operators

Prelude> :t undefined @((+) _ _)

<interactive>:1:1: error:
    Pattern syntax in expression context: undefined@((+) (_) (_))
    Did you mean to enable TypeApplications?

but not with

Prelude> :t undefined @((~) _ _)

<interactive>:1:15: error: parse error on input ‘)’
Trac metadata
Trac field Value
Version 8.0.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