Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Documentation = Documentation {
- typeName :: TypeName
- fields :: [Field]
- description :: Text
- data Field = Field {
- fieldName :: FieldName
- fieldType :: TypeName
- isRequired :: Bool
- class Docs a where
- genDocs :: forall a. (Generic a, GTypeName (Rep a), Selectors (Rep a)) => Text -> Proxy a -> Documentation
- genValues :: forall a. (Enum a, Bounded a, Show a) => Proxy a -> [Text]
- genFields :: forall a. Selectors (Rep a) => Proxy a -> [Field]
Documentation
data Documentation Source #
Documentation for a given type
Documentation | |
|
Documentation for a record field
Field | |
|
Can generate documentation for type