Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure with latest deps #7

Closed
snoyberg opened this issue Jul 31, 2017 · 1 comment
Closed

Build failure with latest deps #7

snoyberg opened this issue Jul 31, 2017 · 1 comment

Comments

@snoyberg
Copy link

src/Glazier/React/Markup.hs:132:5: error:
    • Could not deduce (Monad m) arising from a do statement
      from the context: Functor m
        bound by the type signature for:
                   bh :: forall (m :: * -> *) a.
                         Functor m =>
                         JE.JSVar -> [JE.Property] -> ReactMlT m a -> ReactMlT m a
        at src/Glazier/React/Markup.hs:130:1-76
      Possible fix:
        add (Monad m) to the context of
          the type signature for:
            bh :: forall (m :: * -> *) a.
                  Functor m =>
                  JE.JSVar -> [JE.Property] -> ReactMlT m a -> ReactMlT m a
    • In a stmt of a 'do' block: (a, childs') <- childs mempty
      In the expression:
        do (a, childs') <- childs mempty
           pure (a, xs `D.snoc` BranchMarkup (BranchParam n props childs'))
      In the second argument of ‘($)’, namely
        ‘\ xs
           -> do (a, childs') <- childs mempty
                 pure (a, xs `D.snoc` BranchMarkup (BranchParam n props childs'))’
    |
132 |     (a, childs') <- childs mempty
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Glazier/React/Markup.hs:133:5: error:
    • Could not deduce (Applicative m) arising from a use of ‘pure’
      from the context: Functor m
        bound by the type signature for:
                   bh :: forall (m :: * -> *) a.
                         Functor m =>
                         JE.JSVar -> [JE.Property] -> ReactMlT m a -> ReactMlT m a
        at src/Glazier/React/Markup.hs:130:1-76
snoyberg added a commit to commercialhaskell/stackage that referenced this issue Jul 31, 2017
@louispan
Copy link
Owner

louispan commented Jul 2, 2018

Took me a while, but I finally finished rewriting the framework. It should build now

@louispan louispan closed this as completed Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants