| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Development.IDE.Types.Options
Description
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 #
Constructors
| IdeOptions | |
Fields
| |
data IdePreprocessedSource Source #
Constructors
| IdePreprocessedSource | |
Fields
| |
newtype IdeReportProgress Source #
Constructors
| IdeReportProgress Bool |
newtype IdeTesting Source #
Constructors
| IdeTesting Bool |
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.Types.Options Methods showsPrec :: Int -> IdeGhcSession -> ShowS # show :: IdeGhcSession -> String # showList :: [IdeGhcSession] -> ShowS # | |
| NFData IdeGhcSession Source # | |
Defined in Development.IDE.Types.Options Methods rnf :: IdeGhcSession -> () # | |
Constructors
| LspConfig | |
Fields | |
Instances
| Eq LspConfig Source # | |
| Ord LspConfig Source # | |
| 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 #
Constructors
| CheckProject | |
Fields | |
Instances
| Eq CheckProject Source # | |
Defined in Development.IDE.Types.Options | |
| Ord CheckProject Source # | |
Defined in Development.IDE.Types.Options Methods compare :: CheckProject -> CheckProject -> Ordering # (<) :: CheckProject -> CheckProject -> Bool # (<=) :: CheckProject -> CheckProject -> Bool # (>) :: CheckProject -> CheckProject -> Bool # (>=) :: CheckProject -> CheckProject -> Bool # max :: CheckProject -> CheckProject -> CheckProject # min :: CheckProject -> CheckProject -> CheckProject # | |
| Show CheckProject Source # | |
Defined in Development.IDE.Types.Options Methods showsPrec :: Int -> CheckProject -> ShowS # show :: CheckProject -> String # showList :: [CheckProject] -> ShowS # | |
| ToJSON CheckProject Source # | |
Defined in Development.IDE.Types.Options Methods toJSON :: CheckProject -> Value # toEncoding :: CheckProject -> Encoding # toJSONList :: [CheckProject] -> Value # toEncodingList :: [CheckProject] -> Encoding # | |
| FromJSON CheckProject Source # | |
Defined in Development.IDE.Types.Options | |
data CheckParents Source #
Constructors
| NeverCheck | |
| CheckOnClose | |
| CheckOnSaveAndClose | |
| AlwaysCheck |
Instances
data OptHaddockParse Source #
Constructors
| HaddockParse | |
| NoHaddockParse |