Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- type SParser a = forall s u m. Stream s m Char => ParsecT s u m a
- data CellType
- isNullable :: CellType -> Bool
- addNullable :: CellType -> CellType
- getDateFormatFromCT :: CellType -> Maybe String
- removeNullable :: CellType -> CellType
- composeNull :: CellType -> CellType -> CellType
- composeMaxTypesWithNulls :: CellType -> CellType -> CellType
- isDateOrUnknown :: CellType -> Bool
- isDateTimeOrUnknown :: CellType -> Bool
Documentation
type SParser a = forall s u m. Stream s m Char => ParsecT s u m a Source
Used to prettify the type signatures
The CellType contains the types available for inferrence. The order matters, as it represents the order in which the algorithm will try to infer.
isNullable :: CellType -> Bool Source
Is this cell nullable?
addNullable :: CellType -> CellType Source
Add nullability to a cell
getDateFormatFromCT :: CellType -> Maybe String Source
Pull out format from date or datetime cells
removeNullable :: CellType -> CellType Source
Remove nullability from a cell
composeNull :: CellType -> CellType -> CellType Source
Compose second cell with first cell's nullability
composeMaxTypesWithNulls :: CellType -> CellType -> CellType Source
Select the maximum type between first and second cell, and apply nullability if needed (according to first cell)
isDateOrUnknown :: CellType -> Bool Source
Is this cell a Date or Unknown?
isDateTimeOrUnknown :: CellType -> Bool Source
Is this cell a DateTime or Unknown?