Skip to content

Doc output instead of String #2

Description

@cdsmith

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions