hiedb-0.6.0.0: Generates a references DB from .hie files
Safe HaskellSafe-Inferred
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 #

data AstInfo Source #

Constructors

AstInfo 

Instances

Instances details
Monoid AstInfo Source # 
Instance details

Defined in HieDb.Utils

Semigroup AstInfo Source # 
Instance details

Defined in HieDb.Utils