mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-12-12 01:25:41 +03:00
Merge pull request #147 from NorfairKing/ord-event
Add Ord instances for Location and BrickEvent
This commit is contained in:
commit
24dcd3444f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user