[GHC] #14076: cons operator for list give weird output

GHC ghc-devs at haskell.org
Wed Aug 2 09:36:20 UTC 2017


#14076: cons operator for list give weird output
-------------------------------------+-------------------------------------
        Reporter:  AshHash           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  8.2.1
      Resolution:                    |             Keywords:  cons(:)
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by vanto):

 * status:  closed => new
 * resolution:  invalid =>


Comment:

 Reply to [[span(style=color: #FF0000, goldfire )]]:\\
 you have to write {{{:t 'a':'b':[]}}}\\
 reply {{{'a':'b':[] :: [Char]}}}\\\\

 otherwise {{{:t 1:2:[]}}}\\
 reply {{{1:2:[] :: Num a => [a]}}}\\\\

 That's right, it sounds weird. I'm reopening this ticket so you can think
 a little better about the problem, goldfire.\\
 Thanks.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14076#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list