hledger-iadd-1.3.14: A terminal UI as drop-in replacement for hledger add
Safe HaskellNone
LanguageHaskell2010

Brick.Widgets.List.Utils

Synopsis

Documentation

listSimpleReplace :: Eq e => Vector e -> List n e -> List n e Source #

Replace the contents of a list with a new set of elements but preserve the currently selected index.

This is a version of listReplace that doesn't try to be smart, but assumes that all the elements in one list are distinct.

listReplace itself is broken as of brick-0.2 due to a bogus implementation of the merge function.