swarm-0.5.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.TUI.List

Description

A special modified version of handleListEvent to deal with skipping over separators.

Synopsis

Documentation

handleListEventWithSeparators Source #

Arguments

:: (Foldable t, Splittable t, Ord n, Searchable t) 
=> Event 
-> (e -> Bool)

Is this element a separator?

-> EventM n (GenericList n t e) () 

Handle a list event, taking an extra predicate to identify which list elements are separators; separators will be skipped if possible.