Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Show' s where
- class OutputFiles t where
- changeDir :: Eq a => [a] -> [a] -> [a] -> [a]
- refactoring :: Typeable a => FortranVersion -> a -> SourceText -> StateT Position Identity (SourceText, Bool)
- refactorBlocks :: FortranVersion -> SourceText -> Block Annotation -> StateT Position (State Int) (SourceText, Bool)
- refactorStatements :: FortranVersion -> SourceText -> Statement A -> StateT Position (State Int) (SourceText, Bool)
- refactorSyntax :: (Typeable s, Annotated s, Spanned (s A), IndentablePretty (s A)) => FortranVersion -> SourceText -> s A -> StateT Position (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 #
isNewFile :: t -> Bool Source #
outputFiles :: FileOrDir -> FileOrDir -> [t] -> IO () 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
refactoring :: Typeable a => FortranVersion -> a -> SourceText -> StateT Position Identity (SourceText, Bool) Source #
refactorBlocks :: FortranVersion -> SourceText -> Block Annotation -> StateT Position (State Int) (SourceText, Bool) Source #
refactorStatements :: FortranVersion -> SourceText -> Statement A -> StateT Position (State Int) (SourceText, Bool) Source #
refactorSyntax :: (Typeable s, Annotated s, Spanned (s A), IndentablePretty (s A)) => FortranVersion -> SourceText -> s A -> StateT Position (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 #