| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Codec.Xlsx.Parser
Description
This module provides a function for reading .xlsx files
Synopsis
- toXlsx :: ByteString -> Xlsx
- toXlsxEither :: ByteString -> Parser Xlsx
- toXlsxFast :: ByteString -> Xlsx
- toXlsxEitherFast :: ByteString -> Parser Xlsx
- data ParseError
- type Parser = Either ParseError
Documentation
toXlsxEither :: ByteString -> Parser Xlsx Source #
toXlsxFast :: ByteString -> Xlsx Source #
Reads Xlsx from raw data (lazy bytestring) using xeno library
using some "cheating":
- not doing 100% xml validation
- replacing only predefined entities and Unicode character references (without checking codepoint validity)
- almost not using XML namespaces
toXlsxEitherFast :: ByteString -> Parser Xlsx Source #
Fast parsing with Left on parse error, see toXlsxFast
data ParseError Source #
Constructors
| InvalidZipArchive String | |
| MissingFile FilePath | |
| InvalidFile FilePath Text | |
| InvalidRef FilePath RefId | |
| InconsistentXlsx Text |
Instances
type Parser = Either ParseError Source #