Define class as it relates to the Haskell programming language.
Now, if we have a type that we want to include in this class, we can declare it as an instance. The following declares lists of any type of data to be in the Measurable class.class Measurable a where size :: a -> Integer
instance Measurable [a] where size [] = 0 size (x:xs) = 1 + size xs