Fix number parsing
This commit is contained in:
parent
42d52055d1
commit
e93ff1fc74
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ hexDigit = label "hexadecimal digit" $ token (helper . toLower) Set.empty
|
|||
helper _ = Nothing
|
||||
|
||||
accumulateToBase :: (Integral a) => a -> [a] -> a
|
||||
accumulateToBase base = helper
|
||||
accumulateToBase base = helper . reverse
|
||||
where
|
||||
helper [] = 0
|
||||
helper [d] = d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue