Copyright | Copyright 2017 Dominic Orchard Andrew Rice Mistral Contrastin Matthew Danish |
---|---|
License | Apache-2.0 |
Maintainer | dom.orchard@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
- class Default t where
- type FileProgram = ProgramFile A
- callAndSummarise :: Monoid s => (FileProgram -> (s, a)) -> [(FileProgram, SourceText)] -> (s, [a])
- doAnalysisReportWithModFiles :: ([FileProgram] -> r) -> (r -> IO out) -> FileOrDir -> Maybe FileOrDir -> [Filename] -> IO out
- doAnalysisSummary :: (Monoid s, Show' s) => (FileProgram -> (s, FileProgram)) -> FileOrDir -> [Filename] -> IO ()
- doRefactor :: ([FileProgram] -> (String, [FileProgram])) -> FileOrDir -> [Filename] -> FileOrDir -> IO String
- doRefactorAndCreate :: ([FileProgram] -> (String, [FileProgram], [FileProgram])) -> FileOrDir -> [Filename] -> FileOrDir -> IO String
- doRefactorWithModFiles :: ([FileProgram] -> (String, [FileProgram])) -> FileOrDir -> Maybe FileOrDir -> [Filename] -> FileOrDir -> IO String
- doCreateBinary :: ([FileProgram] -> (String, [(Filename, ByteString)])) -> FileOrDir -> Maybe FileOrDir -> [Filename] -> FileOrDir -> IO String
- readParseSrcDir :: FileOrDir -> [Filename] -> IO [(FileProgram, SourceText)]
- getModFilesWithNames :: FileOrDir -> IO [(Filename, ModFile)]
Classes
Datatypes and Aliases
type FileProgram = ProgramFile A Source #
For refactorings which create additional files.
Builders for analysers and refactorings
callAndSummarise :: Monoid s => (FileProgram -> (s, a)) -> [(FileProgram, SourceText)] -> (s, [a]) Source #
Perform an analysis that produces information of type s
.
doAnalysisReportWithModFiles :: ([FileProgram] -> r) -> (r -> IO out) -> FileOrDir -> Maybe FileOrDir -> [Filename] -> IO out Source #
Perform an analysis which reports to the user, but does not output any files.
doAnalysisSummary :: (Monoid s, Show' s) => (FileProgram -> (s, FileProgram)) -> FileOrDir -> [Filename] -> IO () Source #
Perform an analysis that produces information of type s
.
doRefactor :: ([FileProgram] -> (String, [FileProgram])) -> FileOrDir -> [Filename] -> FileOrDir -> IO String Source #
Perform a refactoring that does not add any new files.
doRefactorAndCreate :: ([FileProgram] -> (String, [FileProgram], [FileProgram])) -> FileOrDir -> [Filename] -> FileOrDir -> IO String Source #
Perform a refactoring that may create additional files.
doRefactorWithModFiles :: ([FileProgram] -> (String, [FileProgram])) -> FileOrDir -> Maybe FileOrDir -> [Filename] -> FileOrDir -> IO String Source #
Source directory and file handling
doCreateBinary :: ([FileProgram] -> (String, [(Filename, ByteString)])) -> FileOrDir -> Maybe FileOrDir -> [Filename] -> FileOrDir -> IO String Source #
:: FileOrDir | Directory to read from. |
-> [Filename] | Excluded files. |
-> IO [(FileProgram, SourceText)] |
Read files from a directory.