aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Utils/Json.hs
diff options
context:
space:
mode:
Diffstat (limited to 'haddock-api/src/Haddock/Utils/Json.hs')
-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