[GHC] #15761: pprFamInstLHS drops parentheses
#15761: pprFamInstLHS drops parentheses -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- If I say {{{#!hs data family (a + b) c d data instance (Int + Bool) Double = Float }}} GHC says {{{ • Expecting one more argument to ‘Int + Bool Double’ Expected a type, but ‘Int + Bool Double’ has kind ‘* -> *’ • In the data instance declaration for ‘+’ }}} Note the missing parens in the first line of the error. Will fix shortly. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15761> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15761: pprFamInstLHS drops parentheses -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Resolution: | Keywords: 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 Richard Eisenberg <rae@…>): In [changeset:"38c28c1a8bb129141e533866700e7318314f32c1/ghc" 38c28c1a/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="38c28c1a8bb129141e533866700e7318314f32c1" Fix #15761 by adding parens This was just a pretty-printer infelicity. Fixed now. Test case: printer/T15761 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15761#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15761: pprFamInstLHS drops parentheses -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => merge Comment: There's no reason not to merge, but there's not much reason to either if there is any challenge. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15761#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15761: pprFamInstLHS drops parentheses -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: merge Priority: normal | Milestone: 8.6.2 Component: Compiler | Version: 8.6.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | printer/T15761 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * testcase: => printer/T15761 * milestone: => 8.6.2 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15761#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15761: pprFamInstLHS drops parentheses -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.2 Component: Compiler | Version: 8.6.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | printer/T15761 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.6` with bf667f9d6b9c4e39584217f7828952600cfc00a6. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15761#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC