[Haskell-cafe] Name overloading

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Jan 13 14:14:01 EST 2010

Hello John,

Wednesday, January 13, 2010, 10:08:08 PM, you wrote:

> Of course, this doesn't allow you to have functions share the same
> name if they have different signatures

class Open a where
  open :: a

instance Open (Int -> String) where ...
instance Open (String -> Int) where ...

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list