Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.XLSXSpec.Parser
Description
Parser for Ogma specs stored in XLSX files.
Synopsis
- data XLSXFormat = XLSXFormat {}
- parseXLSXSpec :: (String -> IO (Either String a)) -> a -> XLSXFormat -> ByteString -> IO (Either String (Spec a))
Documentation
data XLSXFormat Source #
Area of the CSV file that contains the information of interest.
Constructors
XLSXFormat | |
Instances
Read XLSXFormat Source # | |
Defined in Language.XLSXSpec.Parser Methods readsPrec :: Int -> ReadS XLSXFormat # readList :: ReadS [XLSXFormat] # readPrec :: ReadPrec XLSXFormat # readListPrec :: ReadPrec [XLSXFormat] # |
Arguments
:: (String -> IO (Either String a)) | Parser for expressions. |
-> a | Default property value. |
-> XLSXFormat | Spec format. |
-> ByteString | String containing XLSX. |
-> IO (Either String (Spec a)) |
Parse a XLSX file and extract a Spec from it.
An auxiliary function must be provided to parse the requirement expressions.
Fails if the sheet does not exist, any of the columns indicate a column out of range, if the XLSX is malformed.