| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ide.TreeTransform
Synopsis
- data Graft a
- graft :: forall a. Data a => SrcSpan -> LHsExpr GhcPs -> Graft a
- transform :: DynFlags -> ClientCapabilities -> Uri -> Graft ParsedSource -> Annotated ParsedSource -> Either String WorkspaceEdit
- useAnnotatedSource :: String -> IdeState -> NormalizedFilePath -> IO (Maybe (Annotated ParsedSource))
Documentation
A transformation for grafting source trees together. Use the semigroup
instance to combine Grafts, and run them via transform.
transform :: DynFlags -> ClientCapabilities -> Uri -> Graft ParsedSource -> Annotated ParsedSource -> Either String WorkspaceEdit Source #
Convert a Graft into a WorkspaceEdit.
useAnnotatedSource :: String -> IdeState -> NormalizedFilePath -> IO (Maybe (Annotated ParsedSource)) Source #
Get the latest version of the annotated parse source.