[GHC] #12363: Type application for infix
GHC
ghc-devs at haskell.org
Sat Jul 9 23:39:40 UTC 2016
#12363: Type application for infix
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature request | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 8.0.1
(Parser) | Keywords:
Resolution: | 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: |
-------------------------------------+-------------------------------------
Comment (by Iceland_jack):
It's reminiscent of math notation, for example homomorphisms:
{{{#!hs
instance Semigroup Int where
(<>) = (+)
}}}
{{{#!hs
-- |abc| ◇_ℕ |xyz| = |abc ◇_Σ∗ xyz|
length "abc" <> @Int length "xyz"
-- ==
length ("abc" <> @String "xyz")
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12363#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list