From 342d4dea8496b62d0b9f4567675fab9e152da8f6 Mon Sep 17 00:00:00 2001 From: Tony Zorman Date: Thu, 24 Mar 2022 10:56:28 +0100 Subject: Support GHC 8.8 As part of the MonadFail proposal[1], the fail method was removed from the Monad type class in GHC 8.8. As such, one now needs a MonadFail constraint for the relevant functions. [1]: https://wiki.haskell.org/MonadFail_Proposal --- Val.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Val.hs b/Val.hs index f024b9d..5c52c82 100644 --- a/Val.hs +++ b/Val.hs @@ -42,7 +42,7 @@ instance FromJSON Val where b64 :: B.ByteString -> T.Text b64 = T.decodeUtf8 . B64.encode -unb64 :: Monad m => T.Text -> m B.ByteString +unb64 :: MonadFail m => T.Text -> m B.ByteString unb64 t = either (\_ -> fail "bad base64 data") return -- cgit v1.2.3