Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Escaped c = Escaped {
- getEscaped :: c
- data Siphon c = Siphon {
- siphonEscape :: !(c -> Escaped c)
- siphonIntercalate :: !(Vector (Escaped c) -> c)
- siphonParseRow :: c -> IResult c (Vector c)
- siphonNull :: c -> Bool
- data DecolonnadeCellError f content = DecolonnadeCellError {
- decodingCellErrorContent :: !content
- decodingCellErrorHeader :: !(Indexed f content)
- decodingCellErrorMessage :: !String
- data Indexed f a = Indexed {
- indexedIndex :: !Int
- indexedHeading :: !(f a)
- newtype DecolonnadeCellErrors f content = DecolonnadeCellErrors {
- getDecolonnadeCellErrors :: Vector (DecolonnadeCellError f content)
- data DecolonnadeRowError f content = DecolonnadeRowError {
- decodingRowErrorRow :: !Int
- decodingRowErrorError :: !(RowError f content)
- data RowError f content
- = RowErrorParse !String
- | RowErrorDecode !(DecolonnadeCellErrors f content)
- | RowErrorSize !Int !Int
- | RowErrorHeading !(HeadingErrors content)
- | RowErrorMinSize !Int !Int
- | RowErrorMalformed !String
- data HeadingErrors content = HeadingErrors {
- headingErrorsMissing :: Vector content
- headingErrorsDuplicate :: Vector (content, Int)
- data Decolonnade f content a where
- DecolonnadePure :: !a -> Decolonnade f content a
- DecolonnadeAp :: !(f content) -> !(content -> Either String a) -> !(Decolonnade f content (a -> b)) -> Decolonnade f content b
Documentation
Escaped | |
|
Siphon | |
|
data DecolonnadeCellError f content Source #
DecolonnadeCellError | |
|
Indexed | |
|
newtype DecolonnadeCellErrors f content Source #
DecolonnadeCellErrors | |
|
data DecolonnadeRowError f content Source #
DecolonnadeRowError | |
|
data RowError f content Source #
RowErrorParse !String | Error occurred parsing the document into cells |
RowErrorDecode !(DecolonnadeCellErrors f content) | Error decoding the content |
RowErrorSize !Int !Int | Wrong number of cells in the row |
RowErrorHeading !(HeadingErrors content) | |
RowErrorMinSize !Int !Int | |
RowErrorMalformed !String | Error decoding unicode content |
data HeadingErrors content Source #
HeadingErrors | |
|
data Decolonnade f content 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.
DecolonnadePure :: !a -> Decolonnade f content a | |
DecolonnadeAp :: !(f content) -> !(content -> Either String a) -> !(Decolonnade f content (a -> b)) -> Decolonnade f content b |
Functor (Decolonnade f content) Source # | |
Applicative (Decolonnade f content) Source # | |