diff options
author | Tony Zorman <soliditsallgood@mailbox.org> | 2022-03-24 10:56:28 +0100 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2022-03-24 11:33:02 -0400 |
commit | 342d4dea8496b62d0b9f4567675fab9e152da8f6 (patch) | |
tree | 659b104d32d2e2f9c10b79a3af9859cf425449a5 | |
parent | 78d69cc0c5c6a65d2ca50e5c610274953095d646 (diff) | |
download | debug-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.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |