hsinspect-lsp-0.0.6: LSP interface over the hsinspect binary.
HsInspect.LSP.Impl
data Caches Source #
Constructors
Fields
by source root
by source filename
cachedContext :: Caches -> FilePath -> ExceptT String IO Context Source #
cachedImports :: Caches -> Context -> FilePath -> ExceptT String IO [Import] Source #
cachedIndex :: Caches -> Context -> ExceptT String IO [Package] Source #
cachedIndex' :: Caches -> Context -> ExceptT String IO [Package] Source #
data Span Source #
Defined in HsInspect.LSP.Impl
Methods
showsPrec :: Int -> Span -> ShowS #
show :: Span -> String #
showList :: [Span] -> ShowS #
getFullModuleName :: Text -> [Import] -> Maybe Text Source #
findType :: Text -> [Package] -> Maybe Text Source #
findNameAndTypes :: Text -> [Package] -> [(Text, Text, Text)] Source #
hoverProvider :: Caches -> FilePath -> (Int, Int) -> ExceptT String IO (Maybe (Span, Text)) Source #
completionProvider :: Caches -> FilePath -> Text -> (Int, Int) -> ExceptT String IO [(Text, Maybe Text)] Source #
symbolAtPoint :: FilePath -> (Int, Int) -> ExceptT String IO (Maybe (Span, Text)) Source #
symbolAtVirtualPoint :: FilePath -> Text -> (Int, Int) -> ExceptT String IO (Maybe (Span, Text)) Source #