ghc-exactprint
ghc-lib
Our great sponsors
ghc-exactprint | ghc-lib | |
---|---|---|
2 | 1 | |
67 | 160 | |
- | 0.0% | |
6.6 | 7.6 | |
2 days ago | 1 day ago | |
Haskell | Haskell | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ghc-exactprint
-
Learning materials for ghc-exactprint?
If you're synthesizing code, beware that addAnnotationsForPretty will always add a preceding space, so it will break layout. The best approach I've found for synthesizing code is to construct an HsExpr GhcPs, use the GHC ppr stuff to prettty print it, and then parse that in order to get reasonable Anns for it.
in one of my project, I need to do some manipulation and transformation of Haskell source code files and AFAIK ghc-exactprint is the right tool for that. Unfortunately I have zero experience with this one, there seems not to be any more detailed documentation/tutorial examples. What is the best way how to learn this library? Can you recommend any sources?
ghc-lib
What are some alternatives?
ghc-core
haskell-language-server - Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
ghc-events - Library and tool for parsing .eventlog files from GHC
ghc-events-analyze
ghc-imported-from - For a given Haskell source file, determine where a symbol is imported from
ghc-core-html - Read ghc-core with style. javascript and CSS style.
ghc-prof - Library for parsing GHC time and allocation profiling reports
ghc-vis - Visualize live Haskell data structures in GHCi
ghc-datasize - ghc-datasize is a tool to determine the size of Haskell data structures in GHC's memory
ghc-lib-parser-ex - GHC API parse tree utilities
ghc-make - An alternative to ghc --make which supports parallel compilation of modules and runs faster when nothing needs compiling.
ghc-dump-tree - Dump GHC's abstract syntax trees