aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2018-01-15 12:39:22 -0500
committerJesse Rosenthal <jrosenthal@jhu.edu>2018-01-17 08:32:52 -0500
commitc1014167b5c3c2446be3c4e8d10f946979e0737b (patch)
tree615cf83c261d17fd13c4fe481bcdedde338e320e
parentd987a9d1142c092798694c650856ed0c371641ac (diff)
downloadpandoc-c1014167b5c3c2446be3c4e8d10f946979e0737b.tar.gz
ImageSize: add derived Eq instance to Dimension
-rw-r--r--src/Text/Pandoc/ImageSize.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/ImageSize.hs b/src/Text/Pandoc/ImageSize.hs
index 4ac1d535f..65559e1ce 100644
--- a/src/Text/Pandoc/ImageSize.hs
+++ b/src/Text/Pandoc/ImageSize.hs
@@ -83,6 +83,7 @@ data Dimension = Pixel Integer
| Inch Double
| Percent Double
| Em Double
+ deriving Eq
instance Show Dimension where
show (Pixel a) = show a ++ "px"