Export list moveBy and use in demo

This commit is contained in:
Jonathan Daugherty 2015-05-24 12:11:27 -07:00
parent 6c1a61abe2
commit 44e211d18f
2 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,7 @@ appEvent e st =
EvKey KEnter [] ->
let el = length $ listElements $ st^.stList
in return $ st & stList %~ listInsert el el
in return $ st & stList %~ (moveBy 1 . listInsert el el)
ev -> return $ st & stEditor %~ (handleEvent ev)
& stList %~ (handleEvent ev)

View File

@ -2,6 +2,7 @@
module Brick.List
( List(listElements)
, list
, moveBy
, drawList
, listInsert
)