Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module is responsible for handling CLI options
Synopsis
- data FortranSrcRunOptions = FortranSrcRunOptions {}
- getFortranSrcRunOptions :: String -> String -> IO FortranSrcRunOptions
- unwrapFortranSrcOptions :: FortranSrcRunOptions -> IO (String, ByteString, [String], FortranVersion)
- data RunOptions a = RunOptions {}
- getRunOptions :: String -> String -> Parser a -> IO (RunOptions a)
Documentation
data FortranSrcRunOptions Source #
Holds fortran-src specific CLI options. This includes the version of the parser, included files and the path of the source
Instances
Show FortranSrcRunOptions Source # | |
Defined in Language.Fortran.Extras.RunOptions showsPrec :: Int -> FortranSrcRunOptions -> ShowS # show :: FortranSrcRunOptions -> String # showList :: [FortranSrcRunOptions] -> ShowS # |
getFortranSrcRunOptions :: String -> String -> IO FortranSrcRunOptions Source #
Given description and header, execute fortran-src options parser
and get the FortranSrcRunOptions
unwrapFortranSrcOptions :: FortranSrcRunOptions -> IO (String, ByteString, [String], FortranVersion) Source #
Obtain path, contents, include dirs and FortranVersion
from FortranSrcRunOptions
data RunOptions a Source #
Holds FortranSrcRunOptions
and additional tool specific CLI options
Instances
Show a => Show (RunOptions a) Source # | |
Defined in Language.Fortran.Extras.RunOptions showsPrec :: Int -> RunOptions a -> ShowS # show :: RunOptions a -> String # showList :: [RunOptions a] -> ShowS # |
getRunOptions :: String -> String -> Parser a -> IO (RunOptions a) Source #
Given description, header and tool options parser, execute options parser
and get the RunOptions