mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-11-30 06:02:02 +03:00
Group type classes
This commit is contained in:
parent
d5f3b0000c
commit
16605e46f8
@ -88,6 +88,9 @@ instance Default (App a e) where
|
||||
data FocusRing = FocusRingEmpty
|
||||
| FocusRingNonempty ![Name] !Int
|
||||
|
||||
class HandleEvent a where
|
||||
handleEvent :: Event -> a -> a
|
||||
|
||||
class SetSize a where
|
||||
setSize :: DisplayRegion -> a -> a
|
||||
|
||||
@ -343,9 +346,6 @@ listInsert pos e l =
|
||||
, listScroll = vScrollToView newSel (listScroll l)
|
||||
}
|
||||
|
||||
class HandleEvent a where
|
||||
handleEvent :: Event -> a -> a
|
||||
|
||||
instance HandleEvent (List a) where
|
||||
handleEvent e theList = f theList
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user