Build failures in `skylighting-core < 0.8.2.3` due to `MonadFail`-related changes in `base`
Closed this issue · 0 comments
sjakobi commented
src/Skylighting/Regex.hs:107:25: error:
• Could not deduce (MonadFail m) arising from a use of ‘fail’
from the context: Monad m
bound by the type signature for:
decodeFromText :: forall (m :: * -> *).
Monad m =>
Text.Text -> m BS.ByteString
at src/Skylighting/Regex.hs:106:1-59
Possible fix:
add (MonadFail m) to the context of
the type signature for:
decodeFromText :: forall (m :: * -> *).
Monad m =>
Text.Text -> m BS.ByteString
• In the first argument of ‘either’, namely ‘fail’
In the first argument of ‘(.)’, namely ‘either fail return’
In the expression:
either fail return . Base64.decode . TE.encodeUtf8
|
107 | decodeFromText = either fail return . Base64.decode . TE.encodeUtf8
| ^^^^
As a Hackage trustee I have revised the affected versions. See e.g. https://hackage.haskell.org/package/skylighting-core-0.8.2.2/revisions/.
This issue is just for your information.