1
1
mirror of https://github.com/google/ormolu.git synced 2024-12-11 08:44:45 +03:00
ormolu/data/examples/declaration
mrkkrp b9c8b64947 Implement more precise comment placement without ‘ghc-exactprint’
‘ghc-exactprint’ (or perhaps lexer of GHC itself) does a fairly poor job at
associating comments with elements of AST. In many cases the result is not
what you'd expect. We ran into insuperable problems with that to the effect
that correct comment placement were impossible.

The new approach is to exploit the raw position information provided by the
GHC lexer, that is, spans attached to AST elements and comments. This
allowed us to place comments in output in a very precise and satisfactory
fashion.
2019-05-08 22:03:21 +02:00
..
data Implement more precise comment placement without ‘ghc-exactprint’ 2019-05-08 22:03:21 +02:00
type-families Implement rendering of type synonyms 2019-04-09 22:45:23 +02:00
type-synonyms Implement rendering of type synonyms 2019-04-09 22:45:23 +02:00