Ticket #636 (closed bug: fixed)

Opened 7 years ago

Last modified 5 years ago

deriving Show for infix constructors forgets backquotes

Reported by: koen@… Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by simonmar) (diff)

When compiling and running the following module:

module Main where

data Foo = Int `Bar` Int
 deriving ( Show )

main = print (3 `Bar` 4)

The expected output is:

3 `Bar` 4

Or even just;

Bar 3 4

Instead, I get:

3 Bar 4

Change History

Changed 7 years ago by anonymous

It seems that this Wiki also removes backquotes!

The expected output is:

3 <<backquote>>Bar<<backquote>> 4

What I get is:

3 Bar 4

Changed 7 years ago by simonmar

  • description modified (diff)

formatting

Changed 7 years ago by anonymous

  • status changed from new to closed
  • resolution set to fixed

I've just fixed this in the HEAD. Test is drvrun018.

The fix should appear in 6.4.2

Simon

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.