| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Foreign.Hoppy.Generator.Spec.ClassFeature
Contents
Description
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.
Constructors
| 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 | |
| Show ClassFeature Source # | |
Defined in Foreign.Hoppy.Generator.Spec.ClassFeature Methods 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.