Interesting.
Please do keep the wiki page up to date so that it accurately describes the current design. For example, I hope you’ll flesh out what a “simplified, source aware, annotated AST derived from the Renamed/Typechecked
Source” really is.
Why not put the .hie-file info into the .hi file? (Optionally, of course.)
What tools/libraries do you plan to produce to allow clients to read a .hie file and make send of the contents?
Simon
From: ghc-devs <ghc-devs-bounces@haskell.org>
On Behalf Of Zubin Duggal
Sent: 14 May 2018 13:32
To: ghc-devs@haskell.org
Cc: Joachim Breitner <mail@joachim-breitner.de>; Gershom B <gershomb@gmail.com>
Subject: HIE Files
Hello,
I will be working on a GSOC project that will allow GHC to output a new .hie file to be written next to .hi files. It will contain information about the typechecked Haskell AST, allowing tooling(like haddocks --hyperlinked-source and haskell-ide-engine) to
work without having to parse, rename and typecheck files all over again.
I have made a GHC wiki page containing more details here:
https://ghc.haskell.org/trac/ghc/wiki/HIEFiles
Looking forward to any comments and suggestions.
Thanks,
Zubin.