logo       

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

lang.haskell.glasgow.bugs

Subject: Re: [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 | 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_______________________________________________
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