[GHC] #12363: Type application for infix

GHC ghc-devs at haskell.org
Sun Jul 3 23:25:04 UTC 2016


#12363: Type application for infix
-------------------------------------+-------------------------------------
           Reporter:  Iceland_jack   |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  lowest         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
  (Parser)                           |
           Keywords:                 |  Operating System:  Unknown/Multiple
  TypeApplications                   |
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 `1 + @Int 10` is a parse error, I would like it to mean the same as

 {{{#!hs
 (+) @Int 1 10
 }}}

 Thoughts?

 ----

 Also

 {{{#!hs
 >>> pure `foldMap` @Maybe @[_] Just 'a'
 "a"

 >>> foldMap @Maybe @[_] pure (Just 'a')
 "a"
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12363>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list