mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
Merge pull request #149 from noughtmare/master
Derive Eq for Picture and Background
This commit is contained in:
commit
5aea21203d
@ -31,7 +31,7 @@ data Picture = Picture
|
||||
, picBackground :: Background
|
||||
-- ^ The picture's background to be displayed in locations with no
|
||||
-- Image data.
|
||||
}
|
||||
} deriving Eq
|
||||
|
||||
instance Show Picture where
|
||||
show (Picture _ layers _ ) = "Picture ?? " ++ show layers ++ " ??"
|
||||
@ -109,6 +109,7 @@ data Background
|
||||
--
|
||||
-- * End of line if there are no remaining non-skip ops.
|
||||
| ClearBackground
|
||||
deriving Eq
|
||||
|
||||
instance NFData Background where
|
||||
rnf (Background c a) = c `seq` a `seq` ()
|
||||
|
Loading…
Reference in New Issue
Block a user