From dd6bfd90bd88176cee71a209ae7afae891c04979 Mon Sep 17 00:00:00 2001 From: Tissevert Date: Sat, 8 Feb 2020 08:10:32 +0100 Subject: [PATCH] Using toEnum to convert from Int to Int ? Surely a left-over from some time when it was a different type --- src/PDF/Output.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PDF/Output.hs b/src/PDF/Output.hs index 82cbe99..688f17a 100644 --- a/src/PDF/Output.hs +++ b/src/PDF/Output.hs @@ -116,7 +116,7 @@ char :: Char -> OBuilder char c = lift char8 c <* offset (+1) string :: String -> OBuilder -string s = lift string8 s <* offset (+ toEnum (length s)) +string s = lift string8 s <* offset (+ length s) line :: String -> OBuilder line l = string l `mappend` newLine