fortran-src-extras-0.1.0: Common functions and utils for fortran-src.
Safe HaskellNone
LanguageHaskell2010

Language.Fortran.Extras.ProgramFile

Description

This module exposes functions obtaining ProgramFile from a valid file name.

Synopsis

Documentation

versionedExpandedProgramFile :: FortranVersion -> [String] -> String -> ByteString -> IO (ProgramFile A0) Source #

Obtain a ProgramFile from a specific version of the parser with include statements expanded.

TODO: cover all FortranVersions, instead of just Fortran77Legacy

versionedProgramFile :: FortranVersion -> String -> ByteString -> ProgramFile A0 Source #

Obtain a ProgramFile from a specific version of the parser.

programFile :: String -> ByteString -> ProgramFile A0 Source #

Obtain a ProgramFile from a parser version deduced by inspection of the file extension.

For example "foo.f90" will deduce the Fortran90 Parser version.