Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.CSVSpec.Parser
Description
Parser for Ogma specs stored in CSV files.
Documentation
Area of the CSV file that contains the information of interest.
Constructors
CSVFormat | |
Fields |
Arguments
:: (String -> IO (Either String a)) | Parser for expressions. |
-> a | Default property value. |
-> CSVFormat | CSV file format spec. |
-> String | String containing CSV. |
-> IO (Either String (Spec a)) |
Parse a CSV file and extract a Spec from it.
An auxiliary function must be provided to parse the requirement expressions.
Fails if any of the columns indicate a column out of range, of if the CSV is malformed.