[GHC] #12446: Doesn't suggest TypeApplications when `~` used prefix
GHC
ghc-devs at haskell.org
Thu Jul 28 18:06:34 UTC 2016
#12446: Doesn't suggest TypeApplications when `~` used prefix
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
{{{
$ 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 ‘)’
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12446>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list