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

CalamityCommands.Group

Description

Command groups

Synopsis

Documentation

data Group m c a Source #

A group of commands

Constructors

Group 

Fields

Instances

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

Defined in CalamityCommands.Group

Methods

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

(k ~ A_Lens, a1 ~ HashMap Text (Group m c a2, AliasType), b ~ HashMap Text (Group m c a2, AliasType)) => LabelOptic "children" k (Group m c a2) (Group m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Group

Methods

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

(k ~ A_Lens, a1 ~ HashMap Text (Command m c a2, AliasType), b ~ HashMap Text (Command m c a2, AliasType)) => LabelOptic "commands" k (Group m c a2) (Group m c a2) a1 b Source # 
Instance details

Defined in CalamityCommands.Group

Methods

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

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

Defined in CalamityCommands.Group

Methods

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

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

Defined in CalamityCommands.Group

Methods

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

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

Defined in CalamityCommands.Group

Methods

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

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

Defined in CalamityCommands.Group

Methods

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

(Show a, Show c) => Show (Group m c a) Source # 
Instance details

Defined in CalamityCommands.Group

Methods

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

show :: Group m c a -> String #

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

(TextShow a, TextShow c) => TextShow (Group m c a) Source # 
Instance details

Defined in CalamityCommands.Group

Methods

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

showb :: Group m c a -> Builder #

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

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

showt :: Group m c a -> Text #

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

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

showtl :: Group m c a -> Text #

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