Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type TemplateWithNames = NodeInfo (SemanticInfo Name) SourceTemplate
- type TemplateWithTypes = NodeInfo (SemanticInfo Id) SourceTemplate
- data RefactorCommand
- performCommand :: RefactorCommand -> Ann Module TemplateWithTypes -> Ghc (Either String (Ann Module TemplateWithTypes))
- readCommand :: String -> String -> RefactorCommand
- readSrcSpan :: String -> String -> RealSrcSpan
- readSrcLoc :: String -> String -> RealSrcLoc
- onlineRefactor :: String -> FilePath -> String -> IO (Either String String)
- onlineASTView :: FilePath -> String -> IO (Either String String)
- performRefactor :: String -> String -> String -> IO (Either String String)
- astView :: String -> String -> IO String
- loadModule :: String -> String -> Ghc ModSummary
- parseTyped :: ModSummary -> Ghc (Ann Module TemplateWithTypes)
- parseRenamed :: ModSummary -> Ghc (Ann Module TemplateWithNames)
- demoRefactor :: String -> String -> String -> IO ()
- printSemaInfo :: (StructuralTraversable node, Outputable n) => node (NodeInfo (SemanticInfo n) src) -> Ghc (node (NodeInfo (SemanticInfo n) src))
Documentation
type TemplateWithNames = NodeInfo (SemanticInfo Name) SourceTemplate Source #
type TemplateWithTypes = NodeInfo (SemanticInfo Id) SourceTemplate Source #
data RefactorCommand Source #
performCommand :: RefactorCommand -> Ann Module TemplateWithTypes -> Ghc (Either String (Ann Module TemplateWithTypes)) Source #
readCommand :: String -> String -> RefactorCommand Source #
readSrcSpan :: String -> String -> RealSrcSpan Source #
readSrcLoc :: String -> String -> RealSrcLoc Source #
loadModule :: String -> String -> Ghc ModSummary Source #
parseTyped :: ModSummary -> Ghc (Ann Module TemplateWithTypes) Source #
parseRenamed :: ModSummary -> Ghc (Ann Module TemplateWithNames) Source #
printSemaInfo :: (StructuralTraversable node, Outputable n) => node (NodeInfo (SemanticInfo n) src) -> Ghc (node (NodeInfo (SemanticInfo n) src)) Source #