[GHC] #13853: TypeApplications and record syntax don't mix
GHC
ghc-devs at haskell.org
Tue Jul 11 00:42:26 UTC 2017
#13853: TypeApplications and record syntax don't mix
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: (none)
Type: feature request | 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: |
-------------------------------------+-------------------------------------
Comment (by Iceland_jack):
Hm this is confusing
{{{
> Identity { runIdentity = 42 }
Identity 42
> (Identity) { runIdentity = 42 }
<interactive>:21:1: error:
• Couldn't match expected type ‘Identity a1’
with actual type ‘a0 -> Identity a0’
• In the expression: (Identity) {runIdentity = 42}
In an equation for ‘it’: it = (Identity) {runIdentity = 42}
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13853#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list