| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Fortran.Version
Description
Fortran version enum and tools for selecting version for a given file.
Documentation
data FortranVersion Source #
The Fortran specification version used (or relevant to its context).
The constructor ordering is important, since it's used for the Ord instance (which is used extensively for pretty printing).
Constructors
| Fortran66 | |
| Fortran77 | fairly close to FORTRAN 77 standard |
| Fortran77Extended | F77 with some extensions |
| Fortran77Legacy | F77 with most extensions |
| Fortran90 | |
| Fortran95 | |
| Fortran2003 | |
| Fortran2008 |
Instances
fortranVersionAliases :: [(String, FortranVersion)] Source #
deduceFortranVersion :: FilePath -> FortranVersion Source #
Deduce the FortranVersion from a FilePath using extension.
Defaults to Fortran 90 if suffix is unrecognized.