aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Utils
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-08-16 12:41:47 +1000
committerYuchen Pei <hi@ypei.me>2022-08-16 12:41:47 +1000
commit9c7202515e216826d10854a4c95c050b97551066 (patch)
treed46f4e258c523fdf857a274220658bd84ff22925 /haddock-api/src/Haddock/Utils
parent4a2ad11155014bcf13a7dbd7f6b9e2c530ac3b79 (diff)
parent4248704596d01753c9a776ebedf5cc598a883e28 (diff)
Merge remote-tracking branch 'upstream/main'
Diffstat (limited to 'haddock-api/src/Haddock/Utils')
-rw-r--r--haddock-api/src/Haddock/Utils/Json.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Utils/Json.hs b/haddock-api/src/Haddock/Utils/Json.hs
index 6bcd38fa..0a796b4a 100644
--- a/haddock-api/src/Haddock/Utils/Json.hs
+++ b/haddock-api/src/Haddock/Utils/Json.hs
@@ -400,7 +400,7 @@ parseIntegralFromDouble d =
let r = toRational d
x = truncate r
in if toRational x == r
- then pure $ x
+ then pure x
else fail $ "unexpected floating number " <> show d
parseIntegral :: Integral a => String -> Value -> Parser a