Opened 8 years ago

Closed 8 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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

$ 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.

Change History (1)

comment:1 Changed 8 years ago by simonpj

  • Resolution set to fixed
  • Status changed from new to closed

Thank you. Fixed, in the HEAD and 6.4.2

Simon

Note: See TracTickets for help on using tickets.