| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | GHC2021 | 
Development.IDE.Types.Options
Description
Options
Synopsis
- data IdeOptions = IdeOptions {
- optPreprocessor :: ParsedSource -> IdePreprocessedSource
 - optGhcSession :: Action IdeGhcSession
 - optPkgLocationOpts :: IdePkgLocationOptions
 - optExtensions :: [String]
 - optShakeProfiling :: Maybe FilePath
 - optTesting :: IdeTesting
 - optReportProgress :: IdeReportProgress
 - optMaxDirtyAge :: Int
 - optLanguageSyntax :: String
 - optNewColonConvention :: Bool
 - optKeywords :: [Text]
 - optDefer :: IdeDefer
 - optCheckProject :: IO Bool
 - optCheckParents :: IO CheckParents
 - optHaddockParse :: OptHaddockParse
 - optModifyDynFlags :: Config -> DynFlagsModifications
 - optShakeOptions :: ShakeOptions
 - optSkipProgress :: forall a. Typeable a => a -> Bool
 - optProgressStyle :: ProgressReportingStyle
 - optRunSubset :: Bool
 - optVerifyCoreFile :: Bool
 
 - data IdePreprocessedSource = IdePreprocessedSource {
- preprocWarnings :: [(SrcSpan, String)]
 - preprocErrors :: [(SrcSpan, String)]
 - preprocSource :: ParsedSource
 
 - newtype IdeReportProgress = IdeReportProgress Bool
 - newtype IdeDefer = IdeDefer Bool
 - newtype IdeTesting = IdeTesting Bool
 - newtype IdeOTMemoryProfiling = IdeOTMemoryProfiling Bool
 - clientSupportsProgress :: ClientCapabilities -> IdeReportProgress
 - data IdePkgLocationOptions = IdePkgLocationOptions {}
 - defaultIdeOptions :: Action IdeGhcSession -> IdeOptions
 - type IdeResult v = ([FileDiagnostic], Maybe v)
 - data IdeGhcSession = IdeGhcSession {
- loadSessionFun :: FilePath -> IO (IdeResult HscEnvEq, [FilePath])
 - sessionVersion :: !Int
 
 - data OptHaddockParse
 - data ProgressReportingStyle
 
Documentation
data IdeOptions Source #
Constructors
| IdeOptions | |
Fields 
  | |
data IdePreprocessedSource Source #
Constructors
| IdePreprocessedSource | |
Fields 
  | |
newtype IdeReportProgress Source #
Constructors
| IdeReportProgress Bool | 
newtype IdeTesting Source #
Constructors
| IdeTesting Bool | 
newtype IdeOTMemoryProfiling Source #
Constructors
| IdeOTMemoryProfiling Bool | 
clientSupportsProgress :: ClientCapabilities -> IdeReportProgress Source #
data IdePkgLocationOptions Source #
The set of options used to locate files belonging to external packages.
Constructors
| IdePkgLocationOptions | |
Fields 
  | |
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 #
Constructors
| IdeGhcSession | |
Fields 
  | |
Instances
| Show IdeGhcSession Source # | |
Defined in Development.IDE.Core.RuleTypes Methods showsPrec :: Int -> IdeGhcSession -> ShowS # show :: IdeGhcSession -> String # showList :: [IdeGhcSession] -> ShowS #  | |
| NFData IdeGhcSession Source # | |
Defined in Development.IDE.Core.RuleTypes Methods rnf :: IdeGhcSession -> () #  | |
data OptHaddockParse Source #
Constructors
| HaddockParse | |
| NoHaddockParse | 
Instances
data ProgressReportingStyle Source #
Constructors
| Percentage | Report using the LSP   | 
| Explicit | Report using explicit 123/456 text  | 
| NoProgress | Do not report any percentage  | 
Instances
| Eq ProgressReportingStyle Source # | |
Defined in Development.IDE.Types.Options Methods (==) :: ProgressReportingStyle -> ProgressReportingStyle -> Bool # (/=) :: ProgressReportingStyle -> ProgressReportingStyle -> Bool #  | |