hiedb-0.4.3.0: Generates a references DB from .hie files
Safe HaskellSafe-Inferred
LanguageHaskell2010

HieDb.Utils

Synopsis

Documentation

addTypeRef :: HieDb -> FilePath -> Array TypeIndex HieTypeFlat -> Array TypeIndex (Maybe Int64) -> RealSrcSpan -> TypeIndex -> IO () #

getHieFilesIn :: FilePath -> IO [FilePath] #

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

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

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

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] #

isCons :: String -> Bool #

genRefsAndDecls :: FilePath -> Module -> Map Identifier [(Span, IdentifierDetails a)] -> ([RefRow], [DeclRow]) #

genDefRow :: FilePath -> Module -> Map Identifier [(Span, IdentifierDetails a)] -> [DefRow] #

identifierTree :: HieAST a -> Tree (HieAST a) #

generateExports :: FilePath -> [AvailInfo] -> [ExportRow] #