drasil-code-0.1.9.0: A framework for code and document generation for scientific software - Code SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.Code.Imperative.ReadInput

Description

Defines functions for reading values from a file corresponding to a DataDesc

Synopsis

Documentation

sampleInputDD :: [CodeVarChunk] -> DataDesc' Source #

Defines the DataDesc for the file containing a sample data set, which a user must supply if they want to generate a sample input file.

readWithDataDesc :: FilePath -> DataDesc' -> IO [Expr] Source #

Reads data from a file and converts the values to Exprs. The file must be formatted according to the DataDesc' passed as a parameter.