Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Siphon f c a where
- newtype Indexed a = Indexed {
- indexedIndex :: Int
- data SiphonError = SiphonError {}
- data RowError
- = RowErrorParse
- | RowErrorDecode !(Vector CellError)
- | RowErrorSize !Int !Int
- | RowErrorHeaders !(Vector (Vector CellError)) !(Vector Text) !(Vector Int)
- | RowErrorHeaderSize !Int !Int
- | RowErrorMalformed !Int
- data CellError = CellError {
- cellErrorColumn :: !Int
- cellErrorContent :: !Text
Documentation
data Siphon f c a where Source #
This just actually a specialization of the free applicative.
Check out Control.Applicative.Free
in the free
library to
learn more about this. The meanings of the fields are documented
slightly more in the source code. Unfortunately, haddock does not
play nicely with GADTs.
data SiphonError Source #
RowErrorParse | Error occurred parsing the document into cells |
RowErrorDecode !(Vector CellError) | Error decoding the content |
RowErrorSize !Int !Int | Wrong number of cells in the row |
RowErrorHeaders !(Vector (Vector CellError)) !(Vector Text) !(Vector Int) | Three parts:
(a) Multiple header cells matched the same expected cell,
(b) Headers that were missing,
(c) Missing headers that were lambdas. They cannot be
shown so instead their positions in the |
RowErrorHeaderSize !Int !Int | Not enough cells in header, expected, actual |
RowErrorMalformed !Int | Error decoding unicode content, column number |