-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update printing style #24
Conversation
* Generalize printing of type, newtype and data declarations. Reuse TypeApp printing * Change printers to add newline prior to symbols. Favor indent over alignCurrentColumn. * Remove unneeded parenthesis on type declaration * Remove space after record/row parenthesis if within a line. * Remove space prior dot on forall
re
purty always adds spaces
|
I too prefer
to
because it's easier to go from to
|
In line with that, would we prefer purty style of putting the operators at the end? foo ::
forall a.
Foo a =>
a ->
Int It will make things much simpler. But not sure if that's the preferred style. Can of course be a sep pull request. In the meantime, I'll change the space for records / rows. |
I have no preference purty author is using the |
I’ve reverted the spacing on rows on the last commit |
I wanted to take care of #22 and ended up changing a number of things. This is my first usage of a pretty printer lib, so not entirely sure if I'm doing these right. The changes include the ff:
--
I realize I may have take too much of a liberty changing up the printers a bit too much. If it is preferred that I take a step by step approach and a bit more bite sized series of pull requests, please let me know.
There are a number of missing parts I've left unsolved for now, since this one has already grown too big. But can help out on future pull requests including:
I'm also open to changing the printing styles of course.