Safe Haskell | None |
---|---|
Language | GHC2021 |
Development.IDE.Plugin.Completions.Types
Synopsis
- data CompItem = CI {
- compKind :: CompletionItemKind
- insertText :: Text
- provenance :: Provenance
- label :: Text
- typeText :: Maybe Text
- isInfix :: Maybe Backtick
- isTypeCompl :: Bool
- additionalTextEdits :: Maybe ExtendImport
- nameDetails :: Maybe NameDetails
- isLocalCompletion :: Bool
- data CompletionsConfig = CompletionsConfig {}
- properties :: Properties '['PropertyKey "autoExtendOn" 'TBoolean, 'PropertyKey "snippetsOn" 'TBoolean]
- data CachedCompletions = CC {
- allModNamesAsNS :: [Text]
- unqualCompls :: [CompItem]
- qualCompls :: QualCompls
- anyQualCompls :: [Maybe Text -> CompItem]
- importableModules :: [Text]
- data ExtendImport = ExtendImport {
- doc :: !Uri
- newThing :: !Text
- thingParent :: !(Maybe Text)
- importName :: !Text
- importQual :: !(Maybe Text)
- data LocalCompletions = LocalCompletions
- data NonLocalCompletions = NonLocalCompletions
- data Backtick
- extendImportCommandId :: Text
- data Provenance
- data NameDetails = NameDetails Module OccName
- newtype QualCompls = QualCompls {
- getQualCompls :: Map Text [CompItem]
- data PosPrefixInfo = PosPrefixInfo {
- fullLine :: !Text
- prefixScope :: !Text
- prefixText :: !Text
- cursorPos :: !Position
- nsJSON :: NameSpace -> Value
- parseNs :: Value -> Parser NameSpace
- data CompletionResolveData = CompletionResolveData {
- itemFile :: Uri
- itemNeedsType :: Bool
- itemName :: NameDetails
Documentation
Constructors
CI | |
Fields
|
data CompletionsConfig #
Constructors
CompletionsConfig | |
Fields
|
properties :: Properties '['PropertyKey "autoExtendOn" 'TBoolean, 'PropertyKey "snippetsOn" 'TBoolean] #
data CachedCompletions #
End result of the completions
Constructors
CC | |
Fields
|
Instances
Monoid CachedCompletions # | |
Defined in Development.IDE.Plugin.Completions.Types Methods mappend :: CachedCompletions -> CachedCompletions -> CachedCompletions # mconcat :: [CachedCompletions] -> CachedCompletions # | |
Semigroup CachedCompletions # | |
Defined in Development.IDE.Plugin.Completions.Types Methods (<>) :: CachedCompletions -> CachedCompletions -> CachedCompletions # sconcat :: NonEmpty CachedCompletions -> CachedCompletions # stimes :: Integral b => b -> CachedCompletions -> CachedCompletions # | |
Show CachedCompletions # | |
Defined in Development.IDE.Plugin.Completions.Types Methods showsPrec :: Int -> CachedCompletions -> ShowS # show :: CachedCompletions -> String # showList :: [CachedCompletions] -> ShowS # | |
NFData CachedCompletions # | |
Defined in Development.IDE.Plugin.Completions.Types Methods rnf :: CachedCompletions -> () # |
data ExtendImport #
Constructors
ExtendImport | |
Fields
|
Instances
data LocalCompletions #
Constructors
LocalCompletions |
Instances
Generic LocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Associated Types
Methods from :: LocalCompletions -> Rep LocalCompletions x # to :: Rep LocalCompletions x -> LocalCompletions # | |||||
Show LocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods showsPrec :: Int -> LocalCompletions -> ShowS # show :: LocalCompletions -> String # showList :: [LocalCompletions] -> ShowS # | |||||
NFData LocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods rnf :: LocalCompletions -> () # | |||||
Eq LocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods (==) :: LocalCompletions -> LocalCompletions -> Bool # (/=) :: LocalCompletions -> LocalCompletions -> Bool # | |||||
Hashable LocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types | |||||
type Rep LocalCompletions # | |||||
type RuleResult LocalCompletions # | Produce completions info for a file | ||||
Defined in Development.IDE.Plugin.Completions.Types |
data NonLocalCompletions #
Constructors
NonLocalCompletions |
Instances
Generic NonLocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Associated Types
Methods from :: NonLocalCompletions -> Rep NonLocalCompletions x # to :: Rep NonLocalCompletions x -> NonLocalCompletions # | |||||
Show NonLocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods showsPrec :: Int -> NonLocalCompletions -> ShowS # show :: NonLocalCompletions -> String # showList :: [NonLocalCompletions] -> ShowS # | |||||
NFData NonLocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods rnf :: NonLocalCompletions -> () # | |||||
Eq NonLocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods (==) :: NonLocalCompletions -> NonLocalCompletions -> Bool # (/=) :: NonLocalCompletions -> NonLocalCompletions -> Bool # | |||||
Hashable NonLocalCompletions # | |||||
Defined in Development.IDE.Plugin.Completions.Types | |||||
type Rep NonLocalCompletions # | |||||
type RuleResult NonLocalCompletions # | |||||
Constructors
Surrounded | |
LeftSide |
data Provenance #
Instances
Show Provenance # | |
Defined in Development.IDE.Plugin.Completions.Types Methods showsPrec :: Int -> Provenance -> ShowS # show :: Provenance -> String # showList :: [Provenance] -> ShowS # | |
Eq Provenance # | |
Defined in Development.IDE.Plugin.Completions.Types | |
Ord Provenance # | |
Defined in Development.IDE.Plugin.Completions.Types Methods compare :: Provenance -> Provenance -> Ordering # (<) :: Provenance -> Provenance -> Bool # (<=) :: Provenance -> Provenance -> Bool # (>) :: Provenance -> Provenance -> Bool # (>=) :: Provenance -> Provenance -> Bool # max :: Provenance -> Provenance -> Provenance # min :: Provenance -> Provenance -> Provenance # |
data NameDetails #
This is a JSON serialisable representation of a GHC Name that we include in completion responses so that we can recover the original name corresponding to the completion item. This is used to resolve additional details on demand about the item like its type and documentation.
Constructors
NameDetails Module OccName |
Instances
FromJSON NameDetails # | |
Defined in Development.IDE.Plugin.Completions.Types | |
ToJSON NameDetails # | |
Defined in Development.IDE.Plugin.Completions.Types Methods toJSON :: NameDetails -> Value # toEncoding :: NameDetails -> Encoding # toJSONList :: [NameDetails] -> Value # toEncodingList :: [NameDetails] -> Encoding # omitField :: NameDetails -> Bool # | |
Show NameDetails # | |
Defined in Development.IDE.Plugin.Completions.Types Methods showsPrec :: Int -> NameDetails -> ShowS # show :: NameDetails -> String # showList :: [NameDetails] -> ShowS # | |
Eq NameDetails # | |
Defined in Development.IDE.Plugin.Completions.Types |
newtype QualCompls #
Constructors
QualCompls | |
Fields
|
Instances
Monoid QualCompls # | |
Defined in Development.IDE.Plugin.Completions.Types Methods mempty :: QualCompls # mappend :: QualCompls -> QualCompls -> QualCompls # mconcat :: [QualCompls] -> QualCompls # | |
Semigroup QualCompls # | |
Defined in Development.IDE.Plugin.Completions.Types Methods (<>) :: QualCompls -> QualCompls -> QualCompls # sconcat :: NonEmpty QualCompls -> QualCompls # stimes :: Integral b => b -> QualCompls -> QualCompls # | |
Show QualCompls # | |
Defined in Development.IDE.Plugin.Completions.Types Methods showsPrec :: Int -> QualCompls -> ShowS # show :: QualCompls -> String # showList :: [QualCompls] -> ShowS # |
data PosPrefixInfo #
Describes the line at the current cursor position
Constructors
PosPrefixInfo | |
Fields
|
Instances
Show PosPrefixInfo # | |
Defined in Development.IDE.Plugin.Completions.Types Methods showsPrec :: Int -> PosPrefixInfo -> ShowS # show :: PosPrefixInfo -> String # showList :: [PosPrefixInfo] -> ShowS # | |
Eq PosPrefixInfo # | |
Defined in Development.IDE.Plugin.Completions.Types Methods (==) :: PosPrefixInfo -> PosPrefixInfo -> Bool # (/=) :: PosPrefixInfo -> PosPrefixInfo -> Bool # |
data CompletionResolveData #
The data that is actually sent for resolve support We need the URI to be able to reconstruct the GHC environment in the file the completion was triggered in.
Constructors
CompletionResolveData | |
Fields
|
Instances
FromJSON CompletionResolveData # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods parseJSON :: Value -> Parser CompletionResolveData # parseJSONList :: Value -> Parser [CompletionResolveData] # | |||||
ToJSON CompletionResolveData # | |||||
Defined in Development.IDE.Plugin.Completions.Types Methods toJSON :: CompletionResolveData -> Value # toEncoding :: CompletionResolveData -> Encoding # toJSONList :: [CompletionResolveData] -> Value # toEncodingList :: [CompletionResolveData] -> Encoding # omitField :: CompletionResolveData -> Bool # | |||||
Generic CompletionResolveData # | |||||
Defined in Development.IDE.Plugin.Completions.Types Associated Types
Methods from :: CompletionResolveData -> Rep CompletionResolveData x # to :: Rep CompletionResolveData x -> CompletionResolveData # | |||||
type Rep CompletionResolveData # | |||||
Defined in Development.IDE.Plugin.Completions.Types type Rep CompletionResolveData = D1 ('MetaData "CompletionResolveData" "Development.IDE.Plugin.Completions.Types" "ghcide-2.7.0.0-4RFlm38cSV494413rRqzNs" 'False) (C1 ('MetaCons "CompletionResolveData" 'PrefixI 'True) (S1 ('MetaSel ('Just "itemFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Uri) :*: (S1 ('MetaSel ('Just "itemNeedsType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "itemName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NameDetails)))) |