Safe Haskell | None |
---|---|
Language | Haskell2010 |
Defines utility methods that prepare Haskell modules for refactoring
- tryRefactor :: Refactoring IdDom -> String -> IO ()
- useFlags :: [String] -> Ghc [String]
- initGhcFlags :: Ghc ()
- useDirs :: [FilePath] -> Ghc ()
- toFileName :: String -> String -> FilePath
- toBootFileName :: String -> String -> FilePath
- loadModule :: String -> String -> Ghc ModSummary
- type TypedModule = Ann UModule IdDom SrcTemplateStage
- parseTyped :: ModSummary -> Ghc TypedModule
- data IsBoot
- readSrcSpan :: String -> String -> RealSrcSpan
- readSrcLoc :: String -> String -> RealSrcLoc
Documentation
tryRefactor :: Refactoring IdDom -> String -> IO () Source #
initGhcFlags :: Ghc () Source #
Initialize GHC flags to default values that support refactoring
toFileName :: String -> String -> FilePath Source #
Translates module name and working directory into the name of the file where the given module should be defined
toBootFileName :: String -> String -> FilePath Source #
Translates module name and working directory into the name of the file where the boot module should be defined
loadModule :: String -> String -> Ghc ModSummary Source #
Load the summary of a module given by the working directory and module name.
type TypedModule = Ann UModule IdDom SrcTemplateStage Source #
The final version of our AST, with type infromation added
parseTyped :: ModSummary -> Ghc TypedModule Source #
Get the typed representation from a type-correct program.
readSrcSpan :: String -> String -> RealSrcSpan Source #
readSrcLoc :: String -> String -> RealSrcLoc Source #