| License | BSD-3-Clause |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
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 | |
Fields
| |
data WebInvocationState Source #
Constructors
| Rejected RejectionReason | |
| InProgress | |
| Complete String |
Instances
data RejectionReason Source #
Constructors
| NoActiveGame | |
| AlreadyRunning | |
| ParseError String |
Instances
| FromJSON RejectionReason Source # | |||||
Defined in Swarm.TUI.Model.WebCommand Methods parseJSON :: Value -> Parser RejectionReason # parseJSONList :: Value -> Parser [RejectionReason] # | |||||
| ToJSON RejectionReason Source # | |||||
Defined in Swarm.TUI.Model.WebCommand Methods toJSON :: RejectionReason -> Value # toEncoding :: RejectionReason -> Encoding # toJSONList :: [RejectionReason] -> Value # toEncodingList :: [RejectionReason] -> Encoding # omitField :: RejectionReason -> Bool # | |||||
| Generic RejectionReason Source # | |||||
Defined in Swarm.TUI.Model.WebCommand Associated Types
Methods from :: RejectionReason -> Rep RejectionReason x # to :: Rep RejectionReason x -> RejectionReason # | |||||
| Show RejectionReason Source # | |||||
Defined in Swarm.TUI.Model.WebCommand Methods showsPrec :: Int -> RejectionReason -> ShowS # show :: RejectionReason -> String # showList :: [RejectionReason] -> ShowS # | |||||
| Eq RejectionReason Source # | |||||
Defined in Swarm.TUI.Model.WebCommand Methods (==) :: RejectionReason -> RejectionReason -> Bool # (/=) :: RejectionReason -> RejectionReason -> Bool # | |||||
| Ord RejectionReason Source # | |||||
Defined in Swarm.TUI.Model.WebCommand Methods compare :: RejectionReason -> RejectionReason -> Ordering # (<) :: RejectionReason -> RejectionReason -> Bool # (<=) :: RejectionReason -> RejectionReason -> Bool # (>) :: RejectionReason -> RejectionReason -> Bool # (>=) :: RejectionReason -> RejectionReason -> Bool # max :: RejectionReason -> RejectionReason -> RejectionReason # min :: RejectionReason -> RejectionReason -> RejectionReason # | |||||
| type Rep RejectionReason Source # | |||||
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)))) | |||||