-
Notifications
You must be signed in to change notification settings - Fork 36
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
A version of Terminal.renderIO that checks ANSI support? #88
Comments
In a way it could, but I think there are too many easily implemented combinations for rendering already – renderIO, putDoc, hPutDoc, … – they all combine small basic functions for convenience. However, the combinations are neither exhaustive, nor are the existing ones very memorable. I’d rather like to remove some of these functions one day, and have users implement their own versions. Is there a reason you need this in the library, and don’t want to simply add this to Dhall’s source? |
As a user, I appreciate libraries that provide useful combinations, even if they aren't very memorable. If I know which library to look at, I can find them. The value of such utilities is that I don't have to define them myself, I don't have to find a place to put them, and I don't have to maintain them.
"need" is a bit much, it's more of a desire or a wish. :) |
For what it's worth, I have also needed such a function.
I would strongly second this, especially when the useful combination allows me to avoid adding yet another build dependency to my |
If we can find a good name for this function, I'd be in favor of adding it. Name suggestions / PRs welcome! :) |
This is a common pattern in
dhall
:Could
prettyprinter-ansi-terminal
export a version ofrenderIO
so I could write something like this instead?The text was updated successfully, but these errors were encountered: