summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTony Zorman <soliditsallgood@mailbox.org>2022-03-24 10:56:28 +0100
committerJoey Hess <joeyh@joeyh.name>2022-03-24 11:33:02 -0400
commit342d4dea8496b62d0b9f4567675fab9e152da8f6 (patch)
tree659b104d32d2e2f9c10b79a3af9859cf425449a5
parent78d69cc0c5c6a65d2ca50e5c610274953095d646 (diff)
downloaddebug-me-342d4dea8496b62d0b9f4567675fab9e152da8f6.tar.gz
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
-rw-r--r--Val.hs2
1 files changed, 1 insertions, 1 deletions
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