Merge pull request #149 from noughtmare/master

Derive Eq for Picture and Background
This commit is contained in:
Jonathan Daugherty 2018-03-17 09:40:30 -07:00 committed by GitHub
commit 5aea21203d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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` ()