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 vty-5.34 #59

Open
sjakobi opened this issue Mar 7, 2022 · 0 comments
Open

Build failure with vty-5.34 #59

sjakobi opened this issue Mar 7, 2022 · 0 comments

Comments

@sjakobi
Copy link
Contributor

sjakobi commented Mar 7, 2022

src/Vgrep/Ansi/Parser.hs:71:37: error:
    • No instance for (Semigroup Attr) arising from a use of ‘<>’
    • In the first argument of ‘pure’, namely
        ‘(format attr' (bare t) <> rest)’
      In a stmt of a 'do' block: pure (format attr' (bare t) <> rest)
      In the expression:
        do acs <- many attrChange
           let attr' = foldr ($) attr (reverse acs)
           t <- rawText
           rest <- go attr'
           ....
   |
71 |         pure (format attr' (bare t) <> rest)
   |                                     ^^

src/Vgrep/Ansi/Parser.hs:105:17: error:
    • No instance for (Monoid Attr) arising from a use of ‘mempty’
    • In the first argument of ‘const’, namely ‘mempty’
      In the expression: const mempty
      In a case alternative: 0 -> const mempty
    |
105 |     0  -> const mempty
    |                 ^^^^^^
cabal: Failed to build vgrep-0.2.3.0

This seems to be due to the removal of Attr's Semigroup and Monoid instances in vty-5.34: https://hackage.haskell.org/package/vty-5.34/changelog.

As a Hackage trustee I have revised vgrep-0.2.3.0 to add a bound vty < 5.34: https://hackage.haskell.org/package/vgrep-0.2.3.0/revisions/

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

1 participant