Safe Haskell | None |
---|---|
Language | Haskell2010 |
Bindings for common class operations, such as copy construction.
- data ClassFeature
- classAddFeatures :: [ClassFeature] -> Class -> Class
Class features
data ClassFeature Source #
Sets of functionality that can be stamped onto a class with
classAddFeatures
.
Assignable | Provides the assignment operator, |
Comparable | Provides operators |
Copyable | Provides copy construction, |
Equatable | Provides |
classAddFeatures :: [ClassFeature] -> Class -> Class Source #
Adds the contents of a feature to a class. Does not check for overlap with existing class contents.