Safe Haskell | Safe-Infered |
---|
- synchronize :: Bool -> BuildWrapper (OpResult [FilePath])
- synchronize1 :: Bool -> FilePath -> BuildWrapper (Maybe FilePath)
- write :: FilePath -> String -> BuildWrapper ()
- configure :: WhichCabal -> BuildWrapper (OpResult Bool)
- build :: Bool -> WhichCabal -> BuildWrapper (OpResult BuildResult)
- build1 :: FilePath -> BuildWrapper (OpResult Bool)
- preproc :: BuildFlags -> FilePath -> IO String
- getBuildFlags :: FilePath -> BuildWrapper (OpResult BuildFlags)
- getAST :: FilePath -> BuildWrapper (OpResult (Maybe (ParseResult (Module SrcSpanInfo, [Comment]))))
- getGHCAST :: FilePath -> BuildWrapper (OpResult (Maybe TypecheckedSource))
- withGHCAST :: FilePath -> (FilePath -> FilePath -> String -> [String] -> IO a) -> BuildWrapper (OpResult (Maybe a))
- withGHCAST' :: FilePath -> ([BWNote] -> FilePath -> FilePath -> String -> [String] -> IO (OpResult (Maybe a))) -> BuildWrapper (OpResult (Maybe a))
- getOutline :: FilePath -> BuildWrapper (OpResult OutlineResult)
- getTokenTypes :: FilePath -> BuildWrapper (OpResult [TokenDef])
- getOccurrences :: FilePath -> String -> BuildWrapper (OpResult [TokenDef])
- getThingAtPoint :: FilePath -> Int -> Int -> BuildWrapper (OpResult (Maybe ThingAtPoint))
- getNamesInScope :: FilePath -> BuildWrapper (OpResult (Maybe [String]))
- getCabalDependencies :: BuildWrapper (OpResult [(FilePath, [CabalPackage])])
- getCabalComponents :: BuildWrapper (OpResult [CabalComponent])
Documentation
:: Bool | if true copy all files, if false only copy files newer than their corresponding temp files |
-> BuildWrapper (OpResult [FilePath]) | return the list of files copied |
copy all files from the project to the temporary folder
:: Bool | always copy the file, if false only copy the file if it is newer than its corresponding temp file |
-> FilePath | the source file in the project folder |
-> BuildWrapper (Maybe FilePath) | return Nothing if no copy or Just file if copied |
synchronize one file only
:: FilePath | the source file in the project folder |
-> String | the contents |
-> BuildWrapper () |
write contents to temporary file
:: WhichCabal | use the source or temp cabal |
-> BuildWrapper (OpResult Bool) | True if configure succeeded |
run cabal configure
:: Bool | do we want output (True) or just compilation without linking? |
-> WhichCabal | use original cabal or temp cabal file |
-> BuildWrapper (OpResult BuildResult) |
run cabal build
:: FilePath | the source file |
-> BuildWrapper (OpResult Bool) | True if build is successful |
build one source file in GHC
:: BuildFlags | the build flags |
-> FilePath | the file to preprocess |
-> IO String | the resulting code |
preprocess a file
:: FilePath | the source file |
-> BuildWrapper (OpResult BuildFlags) |
get the build flags for a source file
:: FilePath | the source file |
-> BuildWrapper (OpResult (Maybe (ParseResult (Module SrcSpanInfo, [Comment])))) |
get haskell-src-exts commented AST for source file
:: FilePath | the source file |
-> BuildWrapper (OpResult (Maybe TypecheckedSource)) |
get GHC typechecked AST for source file
:: FilePath | the source file |
-> (FilePath -> FilePath -> String -> [String] -> IO a) | |
-> BuildWrapper (OpResult (Maybe a)) |
perform an action on the GHC AST
:: FilePath | source file |
-> BuildWrapper (OpResult OutlineResult) |
get outline for source file
:: FilePath | the source file |
-> BuildWrapper (OpResult [TokenDef]) |
get all occurrences of a token in the file
get lexer token types for source file
:: FilePath | the source file |
-> String | the token to search for |
-> BuildWrapper (OpResult [TokenDef]) |
:: FilePath | the source file |
-> Int | the line |
-> Int | the column -> Bool -- ^ do we want the result qualified? -> Bool -- ^ do we want the result typed? |
-> BuildWrapper (OpResult (Maybe ThingAtPoint)) |
get thing at point
getNamesInScope :: FilePath -> BuildWrapper (OpResult (Maybe [String]))Source
get all names in scope (GHC API)
getCabalDependencies :: BuildWrapper (OpResult [(FilePath, [CabalPackage])])Source
get cabal dependencies
getCabalComponents :: BuildWrapper (OpResult [CabalComponent])Source
get cabal components