ekmett / wl-pprint-extras

A free monad based on the Wadler/Leijen pretty printer
http://hackage.haskell.org/package/wl-pprint-extras
Other
8 stars 9 forks source link

Provide choice function or add documentation to flatAlt #8

Open rpglover64 opened 9 years ago

rpglover64 commented 9 years ago

As per this Stack Overflow answer.

It is sometimes useful to have more than 2 alternative renderings, with the widest one preferred if it fits. This is achievable using group and flatAlt, but this is not immediately apparent.