Skip to content

[RFC] The 'Output' abstraction #110

Description

@chshersh

From other issues, I noticed a pattern of having a data type displayed based on the terminal settings:

So I'm thinking about the best way to have an interface with the following requirements:

  • Users should be able to call a single function in the App monad that will automatically figure out how to print the value
  • Ideally, users shouldn't need to implement instances for their custom data types
  • It should be possible to write pure functions using this abstraction (for example, if users want to format their custom data type with colours but still be able to disable colours)

If you have any ideas, I'd love to hear 🙂

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