Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- getAtPoint :: NormalizedFilePath -> Position -> IdeAction (Maybe (Maybe Range, [Text]))
- getDefinition :: NormalizedFilePath -> Position -> IdeAction (Maybe [Location])
- getTypeDefinition :: NormalizedFilePath -> Position -> IdeAction (Maybe [Location])
- highlightAtPoint :: NormalizedFilePath -> Position -> IdeAction (Maybe [DocumentHighlight])
- refsAtPoint :: NormalizedFilePath -> Position -> Action [Location]
- useE :: IdeRule k v => k -> NormalizedFilePath -> MaybeT IdeAction (v, PositionMapping)
- useNoFileE :: IdeRule k v => IdeState -> k -> MaybeT IdeAction v
- usesE :: IdeRule k v => k -> [NormalizedFilePath] -> MaybeT IdeAction [(v, PositionMapping)]
- workspaceSymbols :: Text -> IdeAction (Maybe [SymbolInformation])
- lookupMod :: HieDbWriter -> FilePath -> ModuleName -> Unit -> Bool -> MaybeT IdeAction Uri
Documentation
getAtPoint :: NormalizedFilePath -> Position -> IdeAction (Maybe (Maybe Range, [Text])) Source #
Try to get hover text for the name under point.
getDefinition :: NormalizedFilePath -> Position -> IdeAction (Maybe [Location]) Source #
Goto Definition.
getTypeDefinition :: NormalizedFilePath -> Position -> IdeAction (Maybe [Location]) Source #
highlightAtPoint :: NormalizedFilePath -> Position -> IdeAction (Maybe [DocumentHighlight]) Source #
refsAtPoint :: NormalizedFilePath -> Position -> Action [Location] Source #
useE :: IdeRule k v => k -> NormalizedFilePath -> MaybeT IdeAction (v, PositionMapping) Source #
useE is useful to implement functions that aren’t rules but need shortcircuiting e.g. getDefinition.
usesE :: IdeRule k v => k -> [NormalizedFilePath] -> MaybeT IdeAction [(v, PositionMapping)] Source #
workspaceSymbols :: Text -> IdeAction (Maybe [SymbolInformation]) Source #
:: HieDbWriter | access the database |
-> FilePath | The `.hie` file we got from the database |
-> ModuleName | |
-> Unit | |
-> Bool | Is this file a boot file? |
-> MaybeT IdeAction Uri |
Eventually this will lookup/generate URIs for files in dependencies, but not in the project. Right now, this is just a stub.