git.iko.soy/typeable/http-api-data
on master help sign in
Use showt
commit042ec860f6d6e06ea548b8df02ea6222be13c486 authorNickolay Kudasov <nickolay.kudasov@gmail.com> dateSun 11 Oct 2015, 01:56 (11 years ago) parentecc2783
1 file changed+1−1
Web/HttpApiData/Internal.hs+1−1
Web/HttpApiData/Internal.hs+1−1
@@ -247,7 +247,7 @@ parseBounded :: forall a. (Bounded a, Integral a) => Reader Integer -> Text -> E
247247parseBounded reader input = do
248248 n <- runReader reader input
249249 if (n > h || n < l)
250− then Left ("out of bounds: `" <> input <> "' (should be between " <> T.pack (show l) <> " and " <> T.pack (show h) <> ")")
250+ then Left ("out of bounds: `" <> input <> "' (should be between " <> showt l <> " and " <> showt h <> ")")
251251 else Right (fromInteger n)
252252 where
253253 l = toInteger (minBound :: a)