hls-graph-2.9.0.0: Haskell Language Server internal graph API
Safe HaskellSafe-Inferred
LanguageGHC2021

Development.IDE.Graph.Internal.Database

Synopsis

Documentation

compute :: Database -> Stack -> Key -> RunMode -> Maybe Result -> IO Result Source #

Compute a key.

incDatabase :: Database -> Maybe [Key] -> IO () Source #

Increment the step and mark dirty. Assumes that the database is not running a build

build :: forall f key value. (Traversable f, RuleResult key ~ value, Typeable key, Show key, Hashable key, Eq key, Typeable value) => Database -> Stack -> f key -> IO (f Key, f value) Source #

Unwrap and build a list of keys in parallel

getDirtySet :: Database -> IO [(Key, Int)] Source #

Returns the set of dirty keys annotated with their age (in # of builds)

getKeysAndVisitAge :: Database -> IO [(Key, Int)] Source #

Returns an approximation of the database keys, annotated with how long ago (in # builds) they were visited