[GHC] #13853: TypeApplications and record syntax don't mix
GHC
ghc-devs at haskell.org
Tue Jul 11 15:26:47 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 RyanGlScott):
Assuming the proposal in this ticket were implemented, then yes, `Identity
@Int {}` would be a perfectly cromulent thing to do. `Identity {}` is a
record construction that doesn't specify any record names, so all fields
would be initialized to `⊥`. So `Identity @Int {}` is essentially
`Identity (⊥ :: Int)`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13853#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list