Opened 12 years ago

Closed 12 years ago

#682 closed bug (fixed)

Incorrect parentheses in warning message

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.4.1
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


$ 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

    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.

Change History (1)

comment:1 Changed 12 years ago by simonpj

Resolution: fixed
Status: newclosed

Thank you. Fixed, in the HEAD and 6.4.2


Note: See TracTickets for help on using tickets.