[GHC] #7848: Missing parentheses and backticks

#7848: Missing parentheses and backticks ----------------------------------------------+----------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.6.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Blockedby: Blocking: | Related: ----------------------------------------------+----------------------------- In several cases, GHC does not output parentheses or backticks in error messages. For example, compiling this contrived file {{{ data A = (:&&) Int Int | A Int Int x (+) ((&)@z) ((:&&) a b) (c :&& d) (e `A` f) (A g h) = y where infixl 3 `y` y _ = (&) {-# INLINE (&) #-} {-# SPECIALIZE (&) :: a #-} (&) = x }}} gives an error message containing: {{{ x + (&@z) (:&& a b) (c :&& d) (e A f) (A g h) = y where infixl 3 y y _ = (&) {-# INLINE & #-} {-# SPECIALIZE & :: a #-} }}} Attached patch fixes this issue in several places. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7848 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7848: Missing parentheses and backticks ----------------------------------------------+----------------------------- Reporter: monoidal | Owner: Type: bug | Status: patch Priority: normal | Component: Compiler Version: 7.6.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Blockedby: Blocking: | Related: ----------------------------------------------+----------------------------- Changes (by monoidal): * status: new => patch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7848#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7848: Missing parentheses and backticks
----------------------------------------------+-----------------------------
Reporter: monoidal | Owner:
Type: bug | Status: patch
Priority: normal | Component: Compiler
Version: 7.6.2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Incorrect warning at compile-time | Blockedby:
Blocking: | Related:
----------------------------------------------+-----------------------------
Comment(by krz.gogolewski@…):
commit 144db21e9519fac0af5a845b57b605567c1aaa25
{{{
Author: Krzysztof Gogolewski

#7848: Missing parentheses and backticks ------------------------------------------------+--------------------------- Reporter: monoidal | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.2 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ------------------------------------------------+--------------------------- Changes (by igloo): * status: patch => closed * difficulty: => Unknown * resolution: => fixed Comment: Applied, thanks! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7848#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC