Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Provides functionality for the list command
Synopsis
- data ListFormatStyle
- parseListFormat :: MonadFail m => Text -> m ListFormatStyle
- data ListFormatPhase1 = MkListFormatPhase1 {}
- data ListCmd p = MkListCmd {
- format :: ListFormatPhaseF p
- sort :: MaybePhaseF p Sort
- revSort :: MaybePhaseF p Bool
- type ListCmdP1 = ListCmd Phase1
- type ListCmdP2 = ListCmd Phase2
Phase 1
data ListFormatStyle Source #
Configuration option for the list command format.
Instances
Show ListFormatStyle Source # | |
Defined in Charon.Runner.Command.List showsPrec :: Int -> ListFormatStyle -> ShowS # show :: ListFormatStyle -> String # showList :: [ListFormatStyle] -> ShowS # | |
Eq ListFormatStyle Source # | |
Defined in Charon.Runner.Command.List (==) :: ListFormatStyle -> ListFormatStyle -> Bool # (/=) :: ListFormatStyle -> ListFormatStyle -> Bool # |
parseListFormat :: MonadFail m => Text -> m ListFormatStyle Source #
data ListFormatPhase1 Source #
Holds all configuration data for list formatting i.e. style and truncation params.
Instances
Phase 2
Arguments for the list command.
MkListCmd | |
|
Instances
(k ~ A_Lens, a ~ ListFormatPhaseF p, b ~ ListFormatPhaseF p) => LabelOptic "format" k (ListCmd p) (ListCmd p) a b Source # | |
Defined in Charon.Runner.Command.List | |
(k ~ A_Lens, a ~ MaybePhaseF p Bool, b ~ MaybePhaseF p Bool) => LabelOptic "revSort" k (ListCmd p) (ListCmd p) a b Source # | |
Defined in Charon.Runner.Command.List | |
(k ~ A_Lens, a ~ MaybePhaseF p Sort, b ~ MaybePhaseF p Sort) => LabelOptic "sort" k (ListCmd p) (ListCmd p) a b Source # | |
Defined in Charon.Runner.Command.List | |
Show (ListCmd 'Phase1) Source # | |
Show (ListCmd 'Phase2) Source # | |
AdvancePhase (ListCmd 'Phase1) Source # | |
Eq (ListCmd 'Phase1) Source # | |
Eq (ListCmd 'Phase2) Source # | |
type NextPhase (ListCmd 'Phase1) Source # | |