• Could not deduce (MonadFail m) arising from a use of ‘fail’
from the context: Monad m
bound by the type signature for:
getVars :: forall (m :: * -> *).
Monad m =>
[(String, String)] -> Content -> m [(Deref, VarType)]
at Text/Internal/Css.hs:292:1-75
Possible fix:
add (MonadFail m) to the context of
the type signature for:
but when I do this, I get
• No instance for (MonadFail Data.Functor.Identity.Identity)
arising from a use of ‘getVars’
• In the first argument of ‘mapM’, namely ‘(getVars scope0)’
In the second argument of ‘($)’, namely
‘mapM (getVars scope0) contents’
In the second argument of ‘($)’, namely
‘runIdentity $ mapM (getVars scope0) contents’
|
126 | concat $ runIdentity $ mapM (getVars scope0) contents
| ^^^^^^^^^^^^^^
but when I do this, I get