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

Doc output instead of String #2

Open
cdsmith opened this issue Sep 19, 2021 · 0 comments
Open

Doc output instead of String #2

cdsmith opened this issue Sep 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@cdsmith
Copy link
Owner

cdsmith commented Sep 19, 2021

I'd like for the output to be a Doc (from either https://hackage.haskell.org/package/pretty or a similar package) instead of a String. This would:

  1. Be completely convertible to String when needed, so no loss of functionality.
  2. Make it easier to generate nice output from users of the type.
  3. Make it easier to compose explanations from combinators by nesting bulleted lists and the like.

Point 3 is a really critical one. Right now, the output from nesting combinators is hard to read and parse, and this would go a long way toward fixing it.

@cdsmith cdsmith added the enhancement New feature or request label Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant