List state. Lists have a container t of element type e that is
the data stored by the list. Internally, Lists handle the following
events by default:
Up/down arrow keys: move cursor of selected item
Page up / page down keys: move cursor of selected item by one page at a time (based on the number of items shown)
Home/end keys: move cursor of selected item to beginning or end of list
The List type synonym fixes t to Vector for compatibility
with previous versions of this library.
For a container type to be usable with GenericList, it must have
instances of Traversable and Splittable. The following functions
impose further constraints:
listInsert: Applicative and SemigrouplistRemove: SemigrouplistClear: MonoidlistReverse:Reversible
Instances7Functor, Foldable, Traversable, Show, Generic, Named, …
Functor t => Functor (GenericList n t)Defined in brick-2.10 · Brick.Widgets.ListFoldable t => Foldable (GenericList n t)Defined in brick-2.10 · Brick.Widgets.ListTraversable t => Traversable (GenericList n t)Defined in brick-2.10 · Brick.Widgets.List(Show n, Show (t e)) => Show (GenericList n t e)Defined in brick-2.10 · Brick.Widgets.ListGeneric (GenericList n t e)Defined in brick-2.10 · Brick.Widgets.ListNamed (GenericList n t e) nDefined in brick-2.10 · Brick.Widgets.Listtype Rep (GenericList n t e) = D1 ('MetaDataDefined in brick-2.10 · Brick.Widgets.List"GenericList"
"Brick.Widgets.List"
"brick-2.10-EjbKtbggBIDAB27Nb1O2P0"
'False) (C1 ('MetaCons"List"
'PrefixI 'True) ((S1 ('MetaSel ('Just"listElements"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (t e)) :*: S1 ('MetaSel ('Just"listSelected"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just"listName"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 n) :*: S1 ('MetaSel ('Just"listItemHeight"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))