[GHC] #12459: UnboxedTuple makes overloaded labels fail to parse
GHC
ghc-devs at haskell.org
Thu Aug 4 13:08:45 UTC 2016
#12459: UnboxedTuple makes overloaded labels fail to parse
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
(Parser) |
Keywords: orf | Operating System: Unknown/Multiple
Architecture: | Type of failure: GHC rejects
Unknown/Multiple | valid program
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
[https://gist.githubusercontent.com/PkmX/bfb2c5af4317c96282795f8c588fda1c/raw/4e388fae1b87e16dc215613531e54b036736b34c/NamedTuple.hs
This] works (removing spaces)
{{{#!hs
-- user = ( #login := "themoritz", #id := 3522732 )
user :: User
user = (#login := "themoritz", #id := 3522732)
}}}
but it doesn't when `UnboxedTuples` are enabled:
{{{#!hs
-- tWKw.hs:63:46: error: parse error on input ‘)’
user = (#login := "themoritz", #id := 3522732)
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12459>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list