Safe Haskell | None |
---|---|
Language | Haskell2010 |
Bindings for common class operations, such as copy construction.
Synopsis
- 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 |
Instances
Eq ClassFeature Source # | |
Defined in Foreign.Hoppy.Generator.Spec.ClassFeature (==) :: ClassFeature -> ClassFeature -> Bool # (/=) :: ClassFeature -> ClassFeature -> Bool # | |
Show ClassFeature Source # | |
Defined in Foreign.Hoppy.Generator.Spec.ClassFeature showsPrec :: Int -> ClassFeature -> ShowS # show :: ClassFeature -> String # showList :: [ClassFeature] -> ShowS # |
classAddFeatures :: [ClassFeature] -> Class -> Class Source #
Adds the contents of a feature to a class. Does not check for overlap with existing class contents.