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

Make MarkupM and AttributeValue derive Eq #31

Open
Larivact opened this issue Nov 1, 2017 · 0 comments
Open

Make MarkupM and AttributeValue derive Eq #31

Larivact opened this issue Nov 1, 2017 · 0 comments

Comments

@Larivact
Copy link

Larivact commented Nov 1, 2017

Prelude> import Text.Blaze.Html5
Prelude Text.Blaze.Html5> toHtml "foo" == toHtml "bar"

<interactive>:2:1: error:
     No instance for (Eq Html) arising from a use of ‘==’
     In the expression: toHtml "foo" == toHtml "bar"
      In an equation for it’: it = toHtml "foo" == toHtml "bar"
Prelude Text.Blaze.Html5> toValue "foo" == toValue "bar"

<interactive>:3:1: error:
     No instance for (Eq AttributeValue) arising from a use of ‘==’
     In the expression: toValue "foo" == toValue "bar"
      In an equation for it’: it = toValue "foo" == toValue "bar"

This would be useful for all kinds of scripts.

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