hiedb-0.3.0.0: Generates a references DB from .hie files
Safe HaskellNone
LanguageHaskell2010

HieDb.Utils

Synopsis

Documentation

getHieFilesIn :: FilePath -> IO [FilePath] Source #

Recursively search for .hie and .hie-boot files in given directory

withHieFile :: (NameCacheMonad m, MonadIO m) => FilePath -> (HieFile -> m a) -> m a Source #

findDefInFile :: OccName -> Module -> FilePath -> IO (Either HieDbErr (RealSrcSpan, Module)) Source #

Given the path to a HieFile, it tries to find the SrcSpan of an External name in it by loading it and then looking for the name in NameCache

pointCommand :: HieFile -> (Int, Int) -> Maybe (Int, Int) -> (HieAST TypeIndex -> a) -> [a] Source #