static-ls-0.1.2: See README on Github for more information
Safe HaskellSafe-Inferred
LanguageHaskell2010

StaticLS.HIE.File

Synopsis

Documentation

getHieFileFromTdi :: (HasStaticEnv m, MonadIO m) => TextDocumentIdentifier -> MaybeT m HieFile Source #

Retrieve a hie info from a lsp text document identifier

getHieFile :: (HasCallStack, MonadIO m) => HieFilePath -> ExceptT HieFileReadException m HieFile Source #

Retrieve an hie file from a hie filepath

modToHieFile :: (HasStaticEnv m, MonadIO m) => ModuleName -> MaybeT m HieFile Source #

Retrieve an hie file from a module name

modToSrcFile :: (HasStaticEnv m, MonadIO m) => ModuleName -> MaybeT m SrcFilePath Source #

Retrieve a src file from a module name

srcFilePathToHieFilePath :: (HasStaticEnv m, MonadIO m) => SrcFilePath -> MaybeT m HieFilePath Source #

Fetch a src file from an hie file, checking hiedb but falling back on a file manipulation method if not indexed

hieFilePathToSrcFilePath :: (HasStaticEnv m, MonadIO m) => HieFilePath -> MaybeT m SrcFilePath Source #

Fetch an hie file from a src file

An alternate way of getting file information by pre-indexing hie files - far slower on startup and currently unused