hls-tactics-plugin-0.5.1.0: Tactics plugin for Haskell Language Server
Safe HaskellNone
LanguageHaskell2010

Ide.TreeTransform

Synopsis

Documentation

data Graft a Source #

A transformation for grafting source trees together. Use the semigroup instance to combine Grafts, and run them via transform.

Instances

Instances details
Semigroup (Graft a) Source # 
Instance details

Defined in Ide.TreeTransform

Methods

(<>) :: Graft a -> Graft a -> Graft a #

sconcat :: NonEmpty (Graft a) -> Graft a #

stimes :: Integral b => b -> Graft a -> Graft a #

Monoid (Graft a) Source # 
Instance details

Defined in Ide.TreeTransform

Methods

mempty :: Graft a #

mappend :: Graft a -> Graft a -> Graft a #

mconcat :: [Graft a] -> Graft a #

graft :: forall a. Data a => SrcSpan -> LHsExpr GhcPs -> Graft a Source #

Construct a Graft, replacing the node at the given SrcSpan with the given LHSExpr. The node at that position must already be a LHsExpr, or this is a no-op.

useAnnotatedSource :: String -> IdeState -> NormalizedFilePath -> IO (Maybe (Annotated ParsedSource)) Source #

Get the latest version of the annotated parse source.