[Haskell-cafe] Hello and help request

Philippa Cowderoy flippa at flippac.org
Thu Jul 29 11:06:20 EDT 2004

On Thu, 29 Jul 2004, Henning Thielemann wrote:

> On Thu, 29 Jul 2004 enrico.santoemma at tin.it wrote:
> > I'm very fresh on Haskell. Exactly... chapter 13 of SOE :)
> > Are type classes different from Java classes?
> Type classes are a static issue. They are roughly speaking bundles of
> functions that can be overloaded.

To put it another way, they're closer to Java interfaces - though type
classes are a more general idea, as demonstrated by the multi-parameter
type classes supported by ghc et al. You can think of them as a predicate
- "this type has implementations for these overloaded functions".

flippa at flippac.org

More information about the Haskell-Cafe mailing list