Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- getHieFileFromTdi :: (HasStaticEnv m, MonadIO m) => TextDocumentIdentifier -> MaybeT m HieFile
- getHieFile :: (HasCallStack, MonadIO m) => HieFilePath -> ExceptT HieFileReadException m HieFile
- modToHieFile :: (HasStaticEnv m, MonadIO m) => ModuleName -> MaybeT m HieFile
- modToSrcFile :: (HasStaticEnv m, MonadIO m) => ModuleName -> MaybeT m SrcFilePath
- srcFilePathToHieFilePath :: (HasStaticEnv m, MonadIO m) => SrcFilePath -> MaybeT m HieFilePath
- hieFilePathToSrcFilePath :: (HasStaticEnv m, MonadIO m) => HieFilePath -> MaybeT m SrcFilePath
- getHieFileMap :: FilePath -> HieFilePath -> IO (Map SrcFilePath HieInfo)
- hieFileMapToSrcMap :: Map SrcFilePath HieInfo -> Map HieFilePath SrcFilePath
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
getHieFileMap :: FilePath -> HieFilePath -> IO (Map SrcFilePath HieInfo) Source #
hieFileMapToSrcMap :: Map SrcFilePath HieInfo -> Map HieFilePath SrcFilePath Source #