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

Unnatural formatting of lists and tuples. #5

Closed sjindel closed 11 years ago

sjindel commented 11 years ago

The list and tupled combinators (and more generall encloseSep) format lists and tuples in a style unnatural to most Haskell programmers (indeed, they contradict the style used in the export list itself!).

For example, a multiline list is currently formatted as:

[1
,2
,3]

whereas

[ 1
, 2
, 3 ]

is more common. Similarly for tuples.

In addition, single-line lists/tuples are formatted as

[1,2,3]

whereas

[1, 2, 3]

is more common.

sjindel commented 11 years ago

Resolved by commit 1a718d84bff942b0f4538845fcee536e6755439b.