Tuesday, July 24, 2007

Haskell types and classes

data -- corresponds most with keyword class in Cpp/Java
type -- typedef
newtype -- mixture of typedef, and data with some restrictions
class -- corresponds to interface
instance -- corresponds to implements
kind

No comments: