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

Expose Union functionality #4

Open
dolio opened this issue Mar 27, 2013 · 1 comment
Open

Expose Union functionality #4

dolio opened this issue Mar 27, 2013 · 1 comment

Comments

@dolio
Copy link

dolio commented Mar 27, 2013

Currently, the only way that Union is exposed is through group. However, group can only fiddle with white space. There are cases where this is not good enough. For instance, pretty printing a Haskell case statement:

case e of C1 x -> e1 ; C2 x y -> e2 ; ...

vs.

case e of
  C1 x -> e1
  C2 x y -> e2
  ...

Line breaks must turn into semicolons when trying to lay out on a single line.

A union combinator might allow people to break the invariant, but I'm not sure how to better handle arbitrary new functionality of this type, and it'd be nice to have.

@hvr
Copy link

hvr commented Aug 18, 2015

please migrate to https://github.com/ekmett/ansi-wl-pprint/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants