[GHC] #12446: Doesn't suggest TypeApplications when `~` used prefix

#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

#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 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): That does look odd. Any volunteers to investigate and fix? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12446#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I suspect the problem is that `~` simply isn't a valid constructor lexeme. For instance, {{{ λ> import Lexeme λ> import FastString λ> isLexCon $ fsLit "~" False }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12446#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 Resolution: | Keywords: | TypeApplications Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * keywords: => TypeApplications -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12446#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC