Using toEnum to convert from Int to Int ? Surely a left-over from some time when it was a different type

This commit is contained in:
Tissevert 2020-02-08 08:10:32 +01:00
parent 03fbbc3a96
commit dd6bfd90bd
1 changed files with 1 additions and 1 deletions

View File

@ -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