Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Show' s where
- class OutputFiles t where
- data PR a = PR (Program a)
- srcSpanToSrcLocs :: SrcSpan -> (SrcLoc, SrcLoc)
- refactoringForPar :: Typeable a => a -> SourceText -> StateT SrcLoc Identity (SourceText, Bool)
- changeDir :: Eq a => [a] -> [a] -> [a] -> [a]
- outputAnalysisFiles :: FileOrDir -> [Program Annotation] -> [Filename] -> IO ()
- refactoringLF :: Typeable a => a -> SourceText -> StateT SrcLoc (State Int) (SourceText, Bool)
- refactorFortran :: Monad m => SourceText -> Fortran Annotation -> StateT SrcLoc m (SourceText, Bool)
- refactorDecl :: SourceText -> Decl Annotation -> StateT SrcLoc (State Int) (SourceText, Bool)
- refactorArgName :: Monad m => SourceText -> ArgName Annotation -> StateT SrcLoc m (SourceText, Bool)
- refactorUses :: SourceText -> Uses Annotation -> StateT SrcLoc (State Int) (SourceText, Bool)
- countLines :: Num t => ByteString -> t
- removeNewLines :: (Num t, Eq t) => ByteString -> t -> (ByteString, t)
- unpackFst :: (ByteString, t) -> ([Char], t)
Documentation
class OutputFiles t where Source #
mkOutputText :: FileOrDir -> t -> SourceText Source #
Given a directory and list of triples of filenames, with their source text (if it exists) and their AST, write these to the directory
outputFile :: t -> Filename Source #
outputFiles :: FileOrDir -> FileOrDir -> [t] -> IO () Source #
Data a => Data (PR a) Source # | |
PrettyPrint (PR Annotation) Source # | |
refactoringForPar :: Typeable a => a -> SourceText -> StateT SrcLoc Identity (SourceText, Bool) Source #
changeDir :: Eq a => [a] -> [a] -> [a] -> [a] Source #
changeDir is used to change the directory of a filename string. If the filename string has no directory then this is an identity
outputAnalysisFiles :: FileOrDir -> [Program Annotation] -> [Filename] -> IO () Source #
output pre-analysis ASTs into the directory with the given file names (the list of ASTs should match the list of filenames)
refactoringLF :: Typeable a => a -> SourceText -> StateT SrcLoc (State Int) (SourceText, Bool) Source #
refactorFortran :: Monad m => SourceText -> Fortran Annotation -> StateT SrcLoc m (SourceText, Bool) Source #
refactorDecl :: SourceText -> Decl Annotation -> StateT SrcLoc (State Int) (SourceText, Bool) Source #
refactorArgName :: Monad m => SourceText -> ArgName Annotation -> StateT SrcLoc m (SourceText, Bool) Source #
refactorUses :: SourceText -> Uses Annotation -> StateT SrcLoc (State Int) (SourceText, Bool) Source #
countLines :: Num t => ByteString -> t Source #
removeNewLines :: (Num t, Eq t) => ByteString -> t -> (ByteString, t) Source #
unpackFst :: (ByteString, t) -> ([Char], t) Source #