swarm-0.3.0.1: 2D resource gathering game with programmable robots
CopyrightBrent Yorgey
LicenseBSD-3-Clause
Maintainerbyorgey@gmail.com
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) 
=> 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.