Skip to content

cannot compile with ghc-8.8 because of MonadFail  #239

@jwaldmann

Description

@jwaldmann
   • 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
    |                                  ^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions