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

IsString instance for WidgetT site IO () #1037

Closed
andrewthad opened this issue Jul 21, 2015 · 1 comment
Closed

IsString instance for WidgetT site IO () #1037

andrewthad opened this issue Jul 21, 2015 · 1 comment

Comments

@andrewthad
Copy link
Contributor

I don't know if this has been discussed before, but what do people think about having an IsString instance for WidgetT site IO ()? Every String can trivially be promoted to a widget via:

toWidget . toHtml . pack

This instance would be helpful to me in certain situations (and while I'm at it, an IsString instance for MarkupM () but that isn't part of yesod). Does anyone else think this is a good idea, or do you guys see this kind of thing as harmful/confusing?

@snoyberg
Copy link
Member

I don't see a problem

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