License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Auto-generation of command attributes matrix.
Synopsis
- data DerivedAttrs = DerivedAttrs {}
- data CommandEntry = CommandEntry {
- cmd :: Const
- effects :: Set CommandEffect
- argTypes :: NonEmpty Type
- derivedAttrs :: DerivedAttrs
- newtype CommandCatalog = CommandCatalog {
- entries :: [CommandEntry]
- mkEntry :: Const -> CommandEntry
- getCatalog :: CommandCatalog
Documentation
data DerivedAttrs Source #
DerivedAttrs | |
|
Instances
data CommandEntry Source #
CommandEntry | |
|
Instances
newtype CommandCatalog Source #
Instances
ToJSON CommandCatalog Source # | |
Defined in Swarm.Doc.Command toJSON :: CommandCatalog -> Value # toEncoding :: CommandCatalog -> Encoding # toJSONList :: [CommandCatalog] -> Value # toEncodingList :: [CommandCatalog] -> Encoding # omitField :: CommandCatalog -> Bool # | |
Generic CommandCatalog Source # | |
Defined in Swarm.Doc.Command type Rep CommandCatalog :: Type -> Type # from :: CommandCatalog -> Rep CommandCatalog x # to :: Rep CommandCatalog x -> CommandCatalog # | |
ToSample CommandCatalog Source # | |
Defined in Swarm.Doc.Command toSamples :: Proxy CommandCatalog -> [(Text, CommandCatalog)] # | |
type Rep CommandCatalog Source # | |
Defined in Swarm.Doc.Command type Rep CommandCatalog = D1 ('MetaData "CommandCatalog" "Swarm.Doc.Command" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-doc" 'True) (C1 ('MetaCons "CommandCatalog" 'PrefixI 'True) (S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CommandEntry]))) |
mkEntry :: Const -> CommandEntry Source #
Uses explicit effects documentation as well as type signature information to compute various flags