Make events orderable

This commit is contained in:
Tom Sydney Kerckhove 2017-10-25 16:35:04 +02:00
parent ec1693f8e1
commit 16b59a6257

View File

@ -133,7 +133,7 @@ data Direction = Up
data Location = Location { loc :: (Int, Int)
-- ^ (Column, Row)
}
deriving (Show, Eq)
deriving (Show, Eq, Ord)
suffixLenses ''Location
@ -210,7 +210,7 @@ data BrickEvent n e = VtyEvent Event
-- ^ A mouse-up event on the specified region was
-- received. The 'n' value is the resource name of
-- the clicked widget (see 'clickable').
deriving (Show, Eq)
deriving (Show, Eq, Ord)
data RenderState n =
RS { viewportMap :: M.Map n Viewport