[GHC] #12363: Type application for infix
GHC
ghc-devs at haskell.org
Sun Aug 21 11:19:55 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):
The [[https://gist.github.com/llelf/6c01ded225877914f38a code] from
#12507, whether or not it's supposed to compile, it would be nice to be
able to specify the result type `r`
{{{#!hs
(?) :: forall r fields. Rec fields -> (fields => r) -> r
Rec ? e = e
}}}
{{{#!hs
access = record ? ?a
}}}
Doesn't compile, but
{{{#!hs
-- access :: (?a::Int) => Int
access = (?) @Int record ?a
}}}
which could be `record ? @Int ?a`..
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12363#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list