logo       

[GHC] #636: deriving Show for infix constructors forgets backquotes: msg#00122

lang.haskell.glasgow.bugs

Subject: [GHC] #636: deriving Show for infix constructors forgets backquotes

#636: deriving Show for infix constructors forgets backquotes
------------------------------------+---------------------------------------
Reporter: koen@xxxxxxxxxxxxxx | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.4.1
Severity: normal | Keywords:
Os: Unknown | Difficulty: Unknown
Architecture: Unknown |
------------------------------------+---------------------------------------
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

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/636>
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