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

add Type and Interpret instance for strict Text #82

Merged
merged 1 commit into from Jul 2, 2017

Conversation

Projects
None yet
2 participants
@chris-martin
Copy link
Contributor

commented Jul 2, 2017

This instance is nice to have if you want Generic-derived Interpret instances for types where your Text doesn't happen to be of the lazy variety.

>>> input text' "\"Test\""
"Test"
-}
text' :: Type Data.Text.Text

This comment has been minimized.

Copy link
@Gabriel439

Gabriel439 Jul 2, 2017

Collaborator

Minor suggestion: perhaps call this strictText and rename the old one to lazyText. It's okay if it's a breaking change

This comment has been minimized.

Copy link
@chris-martin

chris-martin Jul 2, 2017

Author Contributor

Sounds good.

@chris-martin

This comment has been minimized.

Copy link
Contributor Author

commented Jul 2, 2017

Oh, I also forgot to export text', of course.

@chris-martin chris-martin force-pushed the chris-martin:pr/strict-text branch from a7d62a9 to 8adf52d Jul 2, 2017

@chris-martin

This comment has been minimized.

Copy link
Contributor Author

commented Jul 2, 2017

Updated, now has strictText and lazyText.

@chris-martin chris-martin force-pushed the chris-martin:pr/strict-text branch from 8adf52d to 7bf4f60 Jul 2, 2017

@Gabriel439

This comment has been minimized.

Copy link
Collaborator

commented Jul 2, 2017

Thanks for adding this! :)

@Gabriel439 Gabriel439 merged commit 7a0c03d into dhall-lang:master Jul 2, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@chris-martin chris-martin deleted the chris-martin:pr/strict-text branch Jul 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.