[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 <krz.gogolewski@gmail.com> Date: Fri Apr 19 13:23:11 2013 +0200 Display operators using parentheses/backticks in error messages (#7848) compiler/basicTypes/DataCon.lhs | 4 ++++ compiler/hsSyn/HsBinds.lhs | 14 +++++++------- compiler/hsSyn/HsPat.lhs | 14 +++++++------- compiler/main/PprTyThing.hs | 2 +- compiler/typecheck/TcErrors.lhs | 2 +- compiler/typecheck/TcHsType.lhs | 2 +- compiler/typecheck/TcRnTypes.lhs | 2 +- compiler/typecheck/TcTyClsDecls.lhs | 2 +- 8 files changed, 23 insertions(+), 19 deletions(-) }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7848#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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