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:
parent
03fbbc3a96
commit
dd6bfd90bd
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ char :: Char -> OBuilder
|
||||||
char c = lift char8 c <* offset (+1)
|
char c = lift char8 c <* offset (+1)
|
||||||
|
|
||||||
string :: String -> OBuilder
|
string :: String -> OBuilder
|
||||||
string s = lift string8 s <* offset (+ toEnum (length s))
|
string s = lift string8 s <* offset (+ length s)
|
||||||
|
|
||||||
line :: String -> OBuilder
|
line :: String -> OBuilder
|
||||||
line l = string l `mappend` newLine
|
line l = string l `mappend` newLine
|
||||||
|
|
Loading…
Reference in a new issue