This website requires JavaScript.
Explore
Help
Sign In
google
/
ormolu
Watch
1
Star
1
Fork
0
You've already forked ormolu
mirror of
https://github.com/google/ormolu.git
synced
2024-11-30 14:46:39 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
a83796bccb
ormolu
/
data
/
examples
/
import
/
comments-per-import-out.hs
5 lines
54 B
Haskell
Raw
Normal View
History
Unescape
Escape
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-02 22:24:24 +03:00
-- (1)
import
Bar
-- (2)
import
Baz
-- (3)
Implement pretty-printing of imports
2019-03-01 01:25:23 +03:00
import
Foo
Reference in New Issue
Copy Permalink