logo       

[GHC] #682: Incorrect parentheses in warning message: msg#00004

lang.haskell.glasgow.bugs

Subject: [GHC] #682: Incorrect parentheses in warning message

#682: Incorrect parentheses in warning message
-------------------------+--------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.4.1
Severity: minor | Keywords:
Os: Linux | Difficulty: Unknown
Architecture: x86 |
-------------------------+--------------------------------------------------
{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.4.1
$ cat > test.hs
main | x <- 1*2+3*4 = undefined
$ ghc test.hs

test.hs:1:5:
Warning: accepting non-standard pattern guards (-fglasgow-exts to
suppress this message)
[x <- ((1 * 2) + 3) * 4, undefined]
}}}

The arithmetic expression is parenthesized incorrectly in the warning.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/682>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise