1
1
mirror of https://github.com/google/ormolu.git synced 2024-12-12 15:14:22 +03:00
ormolu/data
yumiova c13a515b28 Implement pretty printing of normal & parallel list comprehensions
There are no real problems to speak of, as the formatting is obvious and consistent with what the Haskell community already does.See the tests for an example.

The reason transform list comprehensions are not implemented yet is because the GHC AST for representing list comprehensions is ahorrible mess, where slightly different list comprehensions end upcausing massively different syntax trees. The simplest way of solving this would likely be a preprocessing step that reads the syntaxtrees and produces a simple, linear list of bindings. I decided not to implement this yet to avoid delaying this commit further.
2019-06-23 18:58:20 +02:00
..
examples Implement pretty printing of normal & parallel list comprehensions 2019-06-23 18:58:20 +02:00
printer Implement pretty printing combinators 2019-01-28 19:26:13 +01:00