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

GHC trac at galois.com
Fri Dec 16 06:15:22 EST 2005


#636: deriving Show for infix constructors forgets backquotes
----------------------------------+-----------------------------------------
  Reporter:  koen at cs.chalmers.se  |          Owner:         
      Type:  bug                  |         Status:  new    
  Priority:  normal               |      Milestone:         
 Component:  Compiler             |        Version:  6.4.1  
  Severity:  normal               |     Resolution:         
  Keywords:                       |             Os:  Unknown
Difficulty:  Unknown              |   Architecture:  Unknown
----------------------------------+-----------------------------------------
Old description:

> 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

New description:

 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
 }}}

Comment (by simonmar):

 formatting

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/636>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list