swarm-0.7.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellNone
LanguageHaskell2010

Swarm.TUI.Model.WebCommand

Description

The type of commands sent from Web API handlers to the Controller, and the type of replies.

Documentation

data WebCommand Source #

Constructors

RunWebCode 

data WebInvocationState Source #

Instances

Instances details
FromJSON WebInvocationState Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

ToJSON WebInvocationState Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Generic WebInvocationState Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Associated Types

type Rep WebInvocationState 
Instance details

Defined in Swarm.TUI.Model.WebCommand

type Rep WebInvocationState = D1 ('MetaData "WebInvocationState" "Swarm.TUI.Model.WebCommand" "swarm-0.7.0.0-IuFfgHrMoE7JrptOBRVOwx-swarm-tui" 'False) (C1 ('MetaCons "Rejected" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RejectionReason)) :+: (C1 ('MetaCons "InProgress" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Complete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String))))
Show WebInvocationState Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Eq WebInvocationState Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Ord WebInvocationState Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

type Rep WebInvocationState Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

type Rep WebInvocationState = D1 ('MetaData "WebInvocationState" "Swarm.TUI.Model.WebCommand" "swarm-0.7.0.0-IuFfgHrMoE7JrptOBRVOwx-swarm-tui" 'False) (C1 ('MetaCons "Rejected" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RejectionReason)) :+: (C1 ('MetaCons "InProgress" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Complete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String))))

data RejectionReason Source #

Instances

Instances details
FromJSON RejectionReason Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

ToJSON RejectionReason Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Generic RejectionReason Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Associated Types

type Rep RejectionReason 
Instance details

Defined in Swarm.TUI.Model.WebCommand

type Rep RejectionReason = D1 ('MetaData "RejectionReason" "Swarm.TUI.Model.WebCommand" "swarm-0.7.0.0-IuFfgHrMoE7JrptOBRVOwx-swarm-tui" 'False) (C1 ('MetaCons "NoActiveGame" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlreadyRunning" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ParseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String))))
Show RejectionReason Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Eq RejectionReason Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

Ord RejectionReason Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

type Rep RejectionReason Source # 
Instance details

Defined in Swarm.TUI.Model.WebCommand

type Rep RejectionReason = D1 ('MetaData "RejectionReason" "Swarm.TUI.Model.WebCommand" "swarm-0.7.0.0-IuFfgHrMoE7JrptOBRVOwx-swarm-tui" 'False) (C1 ('MetaCons "NoActiveGame" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlreadyRunning" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ParseError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String))))