camfort-0.904: CamFort - Cambridge Fortran infrastructure

CopyrightCopyright 2017 Dominic Orchard Andrew Rice Mistral Contrastin Matthew Danish
LicenseApache-2.0
Maintainerdom.orchard@gmail.com
Safe HaskellNone
LanguageHaskell2010

Camfort.Input

Contents

Description

 

Synopsis

Classes

class Default t where Source #

Class for default values of some type t

Minimal complete definition

defaultValue

Methods

defaultValue :: t Source #

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.

Source directory and file handling

readParseSrcDir Source #

Arguments

:: FileOrDir

Directory to read from.

-> [Filename]

Excluded files.

-> IO [(FileProgram, SourceText)] 

Read files from a directory.

getModFilesWithNames :: FileOrDir -> IO [(Filename, ModFile)] Source #

Retrieve a list of ModFiles from the directory, each associated to the name of the file they are contained within.