calamity-commands-0.4.1.0: A library for declaring, parsing, and invoking text-input based commands
Safe HaskellSafe-Inferred
LanguageHaskell2010

CalamityCommands.Command

Description

Commands and stuff

Synopsis

Documentation

data Command (m :: Type -> Type) (c :: Type) (a :: Type) Source #

A command, paremeterised over its context

Constructors

forall p. Command 

Fields

Instances

Instances details
(k ~ A_Lens, a1 ~ [Check m c], b ~ [Check m c]) => LabelOptic "checks" k (Command m c a2) (Command m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Command

Methods

labelOptic :: Optic k NoIx (Command m c a2) (Command m c a2) a1 b #

(k ~ A_Lens, a1 ~ (c -> Text), b ~ (c -> Text)) => LabelOptic "help" k (Command m c a2) (Command m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Command

Methods

labelOptic :: Optic k NoIx (Command m c a2) (Command m c a2) a1 b #

(k ~ A_Lens, a1 ~ Bool, b ~ Bool) => LabelOptic "hidden" k (Command m c a2) (Command m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Command

Methods

labelOptic :: Optic k NoIx (Command m c a2) (Command m c a2) a1 b #

(k ~ A_Lens, a1 ~ NonEmpty Text, b ~ NonEmpty Text) => LabelOptic "names" k (Command m c a2) (Command m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Command

Methods

labelOptic :: Optic k NoIx (Command m c a2) (Command m c a2) a1 b #

(k ~ A_Lens, a1 ~ [ParameterInfo], b ~ [ParameterInfo]) => LabelOptic "params" k (Command m c a2) (Command m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Command

Methods

labelOptic :: Optic k NoIx (Command m c a2) (Command m c a2) a1 b #

(k ~ A_Lens, a1 ~ Maybe (Group m c a2), b ~ Maybe (Group m c a2)) => LabelOptic "parent" k (Command m c a2) (Command m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Command

Methods

labelOptic :: Optic k NoIx (Command m c a2) (Command m c a2) a1 b #

Show (Command m c a) Source # 
Instance details

Defined in CalamityCommands.Command

Methods

showsPrec :: Int -> Command m c a -> ShowS #

show :: Command m c a -> String #

showList :: [Command m c a] -> ShowS #

TextShow (Command m c a) Source # 
Instance details

Defined in CalamityCommands.Command

Methods

showbPrec :: Int -> Command m c a -> Builder #

showb :: Command m c a -> Builder #

showbList :: [Command m c a] -> Builder #

showtPrec :: Int -> Command m c a -> Text #

showt :: Command m c a -> Text #

showtList :: [Command m c a] -> Text #

showtlPrec :: Int -> Command m c a -> Text #

showtl :: Command m c a -> Text #

showtlList :: [Command m c a] -> Text #