#2766: Infix type operators are presented with incorrect syntax in ghci
---------------------------------+------------------------------------------
    Reporter:  EyalLotem         |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  normal            |    Milestone:                  
   Component:  GHCi              |      Version:  6.10.1          
    Severity:  major             |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by simonpj):

  * difficulty:  => Unknown

Comment:

 Fixed by
 {{{
 Wed Nov 26 13:22:02 GMT 2008  [EMAIL PROTECTED]
   * Fix Trac #2766: printing operator type variables
 }}}
 Now we get
 {{{
 Prelude Control.Arrow> :t first :: Arrow (~>) => b~>c -> (b, d)~>(c, d)
 first :: Arrow (~>) => b~>c -> (b, d)~>(c, d)
   :: (Arrow (~>)) => (~>) b c -> (~>) (b, d) (c, d)
 }}}
 It's be better still to print the operator infix, but the pretty-printer
 for `Type` does not know about fixities, so I have not done that (yet,
 anyway).  But at least it's a legal type now.

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2766#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to