Group type classes

This commit is contained in:
Jonathan Daugherty 2015-05-17 10:02:45 -07:00
parent d5f3b0000c
commit 16605e46f8

View File

@ -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