Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- getCompletions :: [Filter] -> Matcher IdeDeclarationAnn -> CompletionOptions -> ModuleMap [IdeDeclarationAnn] -> [Completion]
- getExactMatches :: Text -> [Filter] -> ModuleMap [IdeDeclarationAnn] -> [Match IdeDeclarationAnn]
- getExactCompletions :: Text -> [Filter] -> ModuleMap [IdeDeclarationAnn] -> [Completion]
- simpleExport :: Match a -> (Match a, [ModuleName])
- completionFromMatch :: (Match IdeDeclarationAnn, [ModuleName]) -> Completion
- data CompletionOptions = CompletionOptions {}
- defaultCompletionOptions :: CompletionOptions
- applyCompletionOptions :: CompletionOptions -> [Match IdeDeclarationAnn] -> [(Match IdeDeclarationAnn, [ModuleName])]
Documentation
getCompletions :: [Filter] -> Matcher IdeDeclarationAnn -> CompletionOptions -> ModuleMap [IdeDeclarationAnn] -> [Completion] Source #
Applies the CompletionFilters and the Matcher to the given Modules and sorts the found Completions according to the Matching Score
getExactMatches :: Text -> [Filter] -> ModuleMap [IdeDeclarationAnn] -> [Match IdeDeclarationAnn] Source #
getExactCompletions :: Text -> [Filter] -> ModuleMap [IdeDeclarationAnn] -> [Completion] Source #
simpleExport :: Match a -> (Match a, [ModuleName]) Source #
completionFromMatch :: (Match IdeDeclarationAnn, [ModuleName]) -> Completion Source #
data CompletionOptions Source #
Instances
FromJSON CompletionOptions Source # | |
Defined in Language.PureScript.Ide.Completion parseJSON :: Value -> Parser CompletionOptions # parseJSONList :: Value -> Parser [CompletionOptions] # |
applyCompletionOptions :: CompletionOptions -> [Match IdeDeclarationAnn] -> [(Match IdeDeclarationAnn, [ModuleName])] Source #