ghcide-2.9.0.0: The core of an IDE
Safe HaskellSafe-Inferred
LanguageGHC2021

Development.IDE.Core.Service

Description

A Shake implementation of the compiler service, built using the Shaker abstraction layer for in-memory use.

Synopsis

Documentation

data IdeState Source #

A Shake database plus persistent store. Can be thought of as storing mappings from (FilePath, k) to RuleResult k.

Instances

Instances details
MonadReader (ReactorChan, IdeState) (ServerM c) Source # 
Instance details

Defined in Development.IDE.LSP.Server

initialise Source #

Arguments

:: Recorder (WithPriority Log) 
-> Config 
-> IdePlugins IdeState 
-> Rules () 
-> Maybe (LanguageContextEnv Config) 
-> Debouncer NormalizedUri 
-> IdeOptions 
-> WithHieDb 
-> ThreadQueue 
-> Monitoring 
-> FilePath

Root directory see Note [Root Directory]

-> IO IdeState 

Initialise the Compiler Service.

shutdown :: IdeState -> IO () Source #

Shutdown the Compiler Service.

updatePositionMapping :: IdeState -> VersionedTextDocumentIdentifier -> [TextDocumentContentChangeEvent] -> STM () Source #

data Log Source #

Instances

Instances details
Show Log Source # 
Instance details

Defined in Development.IDE.Core.Service

Methods

showsPrec :: Int -> Log -> ShowS #

show :: Log -> String #

showList :: [Log] -> ShowS #

Pretty Log Source # 
Instance details

Defined in Development.IDE.Core.Service

Methods

pretty :: Log -> Doc ann #

prettyList :: [Log] -> Doc ann #