[Haskell-cafe] Overloading functions based on arguments?
Henning Thielemann
lemming at henning-thielemann.de
Fri Feb 13 10:34:38 EST 2009
Daniel Kraft wrote:
> Hi,
>
> I just came across a problem like this: Suppose I've got two related
> functions that do similar things, and I want to call them the same...
> Like in:
>
> foobar :: String -> Int -> Int
> foobar :: Int -> String -> Int
>
> (Bad example, but I hope you got the point.)
http://www.haskell.org/haskellwiki/Type_classes_are_for_reusability
More information about the Haskell-Cafe
mailing list