Fix wrong scientific exponent when parsing

This commit is contained in:
Danny Navarro 2017-03-03 19:23:42 -03:00
parent 285ccb0af9
commit fb071210cf
No known key found for this signature in database
GPG Key ID: 81E5F99780FA6A32
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ value = ValueVariable <$> variable
either (pure . ValueFloat)
(maybe (fail "Integer value is out of range.")
(pure . ValueInt)
. toBoundedInteger . (`scientific` 1))
. toBoundedInteger . (`scientific` 0))
. floatingOrInteger
-- TODO: Escape characters. Look at `jsstring_` in aeson package.