Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exposes functions obtaining
ProgramFile
from a valid file name.
Synopsis
- versionedExpandedProgramFile :: FortranVersion -> [String] -> String -> ByteString -> IO (ProgramFile A0)
- versionedProgramFile :: FortranVersion -> String -> ByteString -> ProgramFile A0
- programFile :: String -> ByteString -> ProgramFile A0
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.