
13 Feb
2009
13 Feb
'09
10:34 a.m.
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