Safe Haskell | None |
---|---|
Language | Haskell2010 |
Options
Synopsis
- data IdeOptions = IdeOptions {
- optPreprocessor :: ParsedSource -> IdePreprocessedSource
- optGhcSession :: Action IdeGhcSession
- optPkgLocationOpts :: IdePkgLocationOptions
- optExtensions :: [String]
- optThreads :: Int
- optShakeFiles :: Maybe FilePath
- optShakeProfiling :: Maybe FilePath
- optTesting :: IdeTesting
- optReportProgress :: IdeReportProgress
- optLanguageSyntax :: String
- optNewColonConvention :: Bool
- optKeywords :: [Text]
- optDefer :: IdeDefer
- optCheckProject :: CheckProject
- optCheckParents :: CheckParents
- optHaddockParse :: OptHaddockParse
- optCustomDynFlags :: DynFlags -> DynFlags
- data IdePreprocessedSource = IdePreprocessedSource {
- preprocWarnings :: [(SrcSpan, String)]
- preprocErrors :: [(SrcSpan, String)]
- preprocSource :: ParsedSource
- newtype IdeReportProgress = IdeReportProgress Bool
- newtype IdeDefer = IdeDefer Bool
- newtype IdeTesting = IdeTesting Bool
- clientSupportsProgress :: ClientCapabilities -> IdeReportProgress
- data IdePkgLocationOptions = IdePkgLocationOptions {
- optLocateHieFile :: PackageConfig -> Module -> IO (Maybe FilePath)
- optLocateSrcFile :: PackageConfig -> Module -> IO (Maybe FilePath)
- defaultIdeOptions :: Action IdeGhcSession -> IdeOptions
- type IdeResult v = ([FileDiagnostic], Maybe v)
- data IdeGhcSession = IdeGhcSession {
- loadSessionFun :: FilePath -> IO (IdeResult HscEnvEq, [FilePath])
- sessionVersion :: !Int
- data LspConfig = LspConfig {}
- defaultLspConfig :: LspConfig
- newtype CheckProject = CheckProject {}
- data CheckParents
- data OptHaddockParse
Documentation
data IdeOptions Source #
IdeOptions | |
|
data IdePreprocessedSource Source #
IdePreprocessedSource | |
|
newtype IdeTesting Source #
data IdePkgLocationOptions Source #
The set of options used to locate files belonging to external packages.
IdePkgLocationOptions | |
|
type IdeResult v = ([FileDiagnostic], Maybe v) Source #
The result of an IDE operation. Warnings and errors are in the Diagnostic, and a value is in the Maybe. For operations that throw an error you expect a non-empty list of diagnostics, at least one of which is an error, and a Nothing. For operations that succeed you expect perhaps some warnings and a Just. For operations that depend on other failing operations you may get empty diagnostics and a Nothing, to indicate this phase throws no fresh errors but still failed.
A rule on a file should only return diagnostics for that given file. It should not propagate diagnostic errors through multiple phases.
data IdeGhcSession Source #
IdeGhcSession | |
|
Instances
Show IdeGhcSession Source # | |
Defined in Development.IDE.Types.Options showsPrec :: Int -> IdeGhcSession -> ShowS # show :: IdeGhcSession -> String # showList :: [IdeGhcSession] -> ShowS # | |
NFData IdeGhcSession Source # | |
Defined in Development.IDE.Types.Options rnf :: IdeGhcSession -> () # |
Instances
Eq LspConfig Source # | |
Ord LspConfig Source # | |
Defined in Development.IDE.Types.Options | |
Show LspConfig Source # | |
Generic LspConfig Source # | |
ToJSON LspConfig Source # | |
Defined in Development.IDE.Types.Options | |
FromJSON LspConfig Source # | |
type Rep LspConfig Source # | |
Defined in Development.IDE.Types.Options type Rep LspConfig = D1 ('MetaData "LspConfig" "Development.IDE.Types.Options" "ghcide-0.5.0-44qfEMOy50OD1DtXc48AUP" 'False) (C1 ('MetaCons "LspConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "checkParents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CheckParents) :*: S1 ('MetaSel ('Just "checkProject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CheckProject))) |
newtype CheckProject Source #
Instances
data CheckParents Source #
Instances
data OptHaddockParse Source #