diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-01-15 12:39:22 -0500 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2018-01-17 08:32:52 -0500 |
commit | c1014167b5c3c2446be3c4e8d10f946979e0737b (patch) | |
tree | 615cf83c261d17fd13c4fe481bcdedde338e320e | |
parent | d987a9d1142c092798694c650856ed0c371641ac (diff) | |
download | pandoc-c1014167b5c3c2446be3c4e8d10f946979e0737b.tar.gz |
ImageSize: add derived Eq instance to Dimension
-rw-r--r-- | src/Text/Pandoc/ImageSize.hs | 1 |
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" |