Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Siphon.Types
Synopsis
- 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.
Constructors
SiphonPure :: !a -> Siphon f c a | |
SiphonAp :: !(f c) -> !(c -> Maybe a) -> !(Siphon f c (a -> b)) -> Siphon f c b |
Instances
Applicative (Siphon f c) Source # | |
Defined in Siphon.Types | |
Functor (Siphon f c) Source # | |
Constructors
Indexed | |
Fields
|
Instances
Eq1 Indexed Source # | |
Show1 Indexed Source # | |
Functor Indexed Source # | |
Read (Indexed a) Source # | |
Show (Indexed a) Source # | |
Eq (Indexed a) Source # | |
Ord (Indexed a) Source # | |
data SiphonError Source #
Constructors
SiphonError | |
Fields
|
Instances
Exception SiphonError Source # | |
Defined in Siphon.Types Methods toException :: SiphonError -> SomeException # fromException :: SomeException -> Maybe SiphonError # displayException :: SiphonError -> String # | |
Read SiphonError Source # | |
Defined in Siphon.Types Methods readsPrec :: Int -> ReadS SiphonError # readList :: ReadS [SiphonError] # readPrec :: ReadPrec SiphonError # readListPrec :: ReadPrec [SiphonError] # | |
Show SiphonError Source # | |
Defined in Siphon.Types Methods showsPrec :: Int -> SiphonError -> ShowS # show :: SiphonError -> String # showList :: [SiphonError] -> ShowS # | |
Eq SiphonError Source # | |
Defined in Siphon.Types |
Constructors
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 |