camfort-1.0.1: CamFort - Cambridge Fortran infrastructure
Safe HaskellNone
LanguageHaskell2010

Camfort.Specification.DerivedDataType

Synopsis

Documentation

infer :: ProgramFile A -> PureAnalysis String () DerivedDataTypeReport Source #

Generate report about derived datatypes in given program file

refactor :: [ProgramFile A] -> PureAnalysis String () (DerivedDataTypeReport, [Either String (ProgramFile A)]) Source #

Refactor derived datatypes based on marked comments

check :: ProgramFile A -> PureAnalysis String () DerivedDataTypeReport Source #

Check annotations relating to derived datatypes in given program file

synth :: Char -> [ProgramFile A] -> PureAnalysis String () (DerivedDataTypeReport, [Either String (ProgramFile A)]) Source #

Generate and insert comments about derived datatypes

compile :: () -> ModFiles -> ProgramFile A -> IO ModFile Source #

Compile a program to a ModFile containing derived datatype information.

data DerivedDataTypeReport Source #

Collection of information comprising a 'derived datatype' report for CamFort output purposes.

Constructors

DerivedDataTypeReport 

Fields

Instances

Instances details
Generic DerivedDataTypeReport Source # 
Instance details

Defined in Camfort.Specification.DerivedDataType

Associated Types

type Rep DerivedDataTypeReport :: Type -> Type #

Semigroup DerivedDataTypeReport Source #

These reports can be combined, e.g. from multiple files, and the key part is that the problem reports are also combined, and new problems can be identified from the combination of the SMaps.

Instance details

Defined in Camfort.Specification.DerivedDataType

Monoid DerivedDataTypeReport Source # 
Instance details

Defined in Camfort.Specification.DerivedDataType

Binary DerivedDataTypeReport Source # 
Instance details

Defined in Camfort.Specification.DerivedDataType

NFData DerivedDataTypeReport Source # 
Instance details

Defined in Camfort.Specification.DerivedDataType

Methods

rnf :: DerivedDataTypeReport -> () #

Describe DerivedDataTypeReport Source # 
Instance details

Defined in Camfort.Specification.DerivedDataType

ExitCodeOfReport DerivedDataTypeReport Source # 
Instance details

Defined in Camfort.Specification.DerivedDataType

type Rep DerivedDataTypeReport Source # 
Instance details

Defined in Camfort.Specification.DerivedDataType

successful :: DerivedDataTypeReport -> Bool Source #

True iff no errors are reported.