don't crash

`drawFunc` should return an empty widget.
This commit is contained in:
Jonathan Lamothe 2024-07-18 18:24:53 -04:00
parent 0c35841bb2
commit 696b17fae1

View File

@ -30,6 +30,7 @@ import Brick.AttrMap (forceAttrMap)
import Brick.Main (App (..), halt, neverShowCursor)
import Brick.Types (BrickEvent, EventM, Widget)
import Brick.Util (style)
import Brick.Widgets.Core (emptyWidget)
import Hamming.App.Types
@ -43,7 +44,7 @@ mainApp = App
}
drawFunc :: AppState -> [Widget ()]
drawFunc = const []
drawFunc = const [emptyWidget]
eventHandler :: BrickEvent () () -> EventM () AppState ()
eventHandler = const halt