Re[2]: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Bulat Ziganshin
Hello Mark, Friday, August 4, 2006, 3:03:54 PM, you wrote: I've always been a little surprised when this doesn't happen more widely for things other than instances. For instance, when IntMap.size, Map.size and Set.size (or whatever) are all in scope as size, it should be fairly obvious what

Re[2]: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Bulat Ziganshin
Hello Brian, Friday, August 4, 2006, 8:50:25 PM, you wrote: class Bar a b where bar :: a - b (*) But there's one exception: you can't use typeclasses to resolve overloadings between values and functions because non-function values don't have a type of the form A - B:

Re: Re[2]: [Haskell-cafe] a bunch of newbie questions

2006-08-04 Thread Brian Hulley
Bulat Ziganshin wrote: Hello Brian, Friday, August 4, 2006, 8:50:25 PM, you wrote: class Bar a b where bar :: a - b (*) But there's one exception: you can't use typeclasses to resolve overloadings between values and functions because non-function values don't have a