[Hugs] #50: Disparity between GHCi and Hugs: Outstanding context : Show b

Hugs trac at galois.com
Wed Nov 29 02:12:38 EST 2006


#50: Disparity between GHCi and Hugs: Outstanding context : Show b
-----------------------------------+----------------------------------------
 Reporter:  guest                  |       Owner:  nobody      
     Type:  defect                 |      Status:  new         
 Priority:  minor                  |   Milestone:  next release
Component:  hugs                   |     Version:  200503      
 Keywords:  top level overloading  |  
-----------------------------------+----------------------------------------
Possibly Hugs bug, or possible GHCi feature?

 {{{
 showln  = (++ "\n") . show
 main    = interact (showln . length)
 }}}

 In GHCi:
 {{{
 $ ghci Z.hs
 *Main> :t showln
 showln :: Int -> [Char]
 }}}

 In Hugs (Version: March 2005):
 {{{
 ERROR "Z.hs":1 - Unresolved top-level overloading
 *** Binding             : showln
 *** Outstanding context : Show b
 }}}

 I'm not sure which is right.

 -- Don

-- 
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/50>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell


More information about the Hugs-Bugs mailing list