swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Doc.Command

Description

Auto-generation of command attributes matrix.

Synopsis

Documentation

data DerivedAttrs Source #

Instances

Instances details
ToJSON DerivedAttrs Source # 
Instance details

Defined in Swarm.Doc.Command

Generic DerivedAttrs Source # 
Instance details

Defined in Swarm.Doc.Command

Associated Types

type Rep DerivedAttrs :: Type -> Type #

type Rep DerivedAttrs Source # 
Instance details

Defined in Swarm.Doc.Command

type Rep DerivedAttrs = D1 ('MetaData "DerivedAttrs" "Swarm.Doc.Command" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-doc" 'False) (C1 ('MetaCons "DerivedAttrs" 'PrefixI 'True) ((S1 ('MetaSel ('Just "hasActorTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "pureComputation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "modifiesEnvironment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "modifiesRobot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "movesRobot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "returnsValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "outputType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String)))))

data CommandEntry Source #

Constructors

CommandEntry 

Fields

Instances

Instances details
ToJSON CommandEntry Source # 
Instance details

Defined in Swarm.Doc.Command

Generic CommandEntry Source # 
Instance details

Defined in Swarm.Doc.Command

Associated Types

type Rep CommandEntry :: Type -> Type #

type Rep CommandEntry Source # 
Instance details

Defined in Swarm.Doc.Command

type Rep CommandEntry = D1 ('MetaData "CommandEntry" "Swarm.Doc.Command" "swarm-0.6.0.0-ERx1HMcRMba59aI2b6aNrS-swarm-doc" 'False) (C1 ('MetaCons "CommandEntry" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cmd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Const) :*: S1 ('MetaSel ('Just "effects") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Set CommandEffect))) :*: (S1 ('MetaSel ('Just "argTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Type)) :*: S1 ('MetaSel ('Just "derivedAttrs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DerivedAttrs))))

newtype CommandCatalog Source #

Constructors

CommandCatalog 

Fields

Instances

Instances details
ToJSON CommandCatalog Source # 
Instance details

Defined in Swarm.Doc.Command

Generic CommandCatalog Source # 
Instance details

Defined in Swarm.Doc.Command

Associated Types

type Rep CommandCatalog :: Type -> Type #

ToSample CommandCatalog Source # 
Instance details

Defined in Swarm.Doc.Command

type Rep CommandCatalog Source # 
Instance details

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