Haskell
To index Haskell Glean consumes .hie
files produced by the GHC compiler (>=8.8) with the flag -fwrite-ide-info
.
Run the indexer
The indexer is run via the main glean
CLI tool.
BUILD --ghc-options=-fwrite-ide-info
glean --db-root DBDIR index haskell ROOT --db NAME/INSTANCE
where
BUILD
is a build command such that GHC is called with-fwrite-ide-info
DBDIR
is the directory where the Glean db will be createdROOT
is the root directory containing the build artifacts generated with thefwrite-ide-info
flag (e.g.dist
if a Cabal project)name/hash
is the name of the repository to create
Schemaβ
The schema is in