### Install HIE DB Source: https://github.com/haskell/hiedb/blob/master/README.md Installs the hiedb package using cabal. Ensure you have the correct GHC and cabal versions installed. ```bash $ cabal install hiedb ``` -------------------------------- ### Query name references Source: https://github.com/haskell/hiedb/blob/master/README.md Looks up references for a given name (value or data constructor) within an indexed database. Optionally specify the module where the name was defined. ```bash $ hiedb -D name-refs [MODULE] ``` -------------------------------- ### Query symbol references by location (HIE file) Source: https://github.com/haskell/hiedb/blob/master/README.md Looks up references for a symbol at a specific location within a .hie file. Requires the HIE file path and line/column numbers. ```bash $ hiedb -D - point-refs (-f|--hiefile HIEFILE) SLINE SCOL [ELINE] [ECOL] ``` -------------------------------- ### Query symbol references by location (Indexed Module) Source: https://github.com/haskell/hiedb/blob/master/README.md Looks up references for a symbol at a specific location within an indexed module. Requires the module name and line/column numbers. Optionally specify the unit ID. ```bash $ hiedb -D - point-refs MODULE [-u|--unit-id UNITID] SLINE SCOL [ELINE] [ECOL] ``` -------------------------------- ### Index .hie files Source: https://github.com/haskell/hiedb/blob/master/README.md Indexes .hie files into a specified database location. The database location can be omitted to use the HIEDB environment variable or a default path. ```bash $ hiedb -D index ``` -------------------------------- ### Query type references Source: https://github.com/haskell/hiedb/blob/master/README.md Looks up references for a given type within an indexed database. Optionally specify the module where the type was defined. ```bash $ hiedb -D type-refs [MODULE] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.