[GHC] #2530: deriving Show adds extra parens for constructor with record syntax
GHC
ghc-devs at haskell.org
Tue Feb 9 11:31:20 UTC 2016
#2530: deriving Show adds extra parens for constructor with record syntax
-------------------------------------+-------------------------------------
Reporter: spl | Owner:
Type: bug | Status: new
Priority: lowest | Milestone: 8.0.1
Component: Compiler | Version: 6.8.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D669
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by hvr):
* status: closed => new
* resolution: fixed =>
Comment:
Btw, this also affects how GHCi displays results:
{{{
GHCi, version 8.0.0.20160204: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/hvr/.ghci
λ:1> data T = C { f1, f2 :: () } deriving Show
data T = C {f1 :: (), f2 :: ()}
f1 :: T -> ()
f2 :: T -> ()
λ:2> Just (C () ())
Just C {f1 = (), f2 = ()}
it :: Maybe T
λ:3>
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2530#comment:30>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list