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

Use data-default #546

Closed
anton-k opened this issue Jun 26, 2012 · 1 comment
Closed

Use data-default #546

anton-k opened this issue Jun 26, 2012 · 1 comment

Comments

@anton-k
Copy link

anton-k commented Jun 26, 2012

There is a standard class Data.Default (data-default on Hackage) for values with defaults. Maybe it is better to use it in place of defaultParserState and defaultWriterOptions then code will look like:

options :: WriterOptions
options = def { writerStandalone = True }

But it probably breaks a lot of code.

@jgm jgm closed this as completed in 2351f7a Jul 19, 2012
@ip1981
Copy link
Contributor

ip1981 commented Oct 23, 2018

Hi from 2018. Data.Default is toxic, def reduces readability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants