Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ParseException = ParseException String
- n :: Text -> Name
- class FromCursor a where
- class FromAttrVal a where
- fromAttribute :: FromAttrVal a => Name -> Cursor -> [a]
- maybeAttribute :: FromAttrVal a => Name -> Cursor -> [Maybe a]
- maybeElementValue :: FromAttrVal a => Name -> Cursor -> [Maybe a]
- maybeFromElement :: FromCursor a => Name -> Cursor -> [Maybe a]
- readSuccess :: a -> Either String (a, Text)
- readFailure :: Text -> Either String (a, Text)
- invalidText :: Text -> Text -> Either String (a, Text)
- defaultReadFailure :: Either String (a, Text)
- boolean :: Monad m => Text -> m Bool
- decimal :: Monad m => Text -> m Int
- rational :: Monad m => Text -> m Double
Documentation
data ParseException Source #
class FromCursor a where Source #
fromCursor :: Cursor -> [a] Source #
class FromAttrVal a where Source #
fromAttrVal :: Reader a Source #
FromAttrVal Bool Source # | |
FromAttrVal Double Source # | |
FromAttrVal Int Source # | |
FromAttrVal Text Source # | |
FromAttrVal PaperSize Source # | See |
FromAttrVal PageOrder Source # | See |
FromAttrVal Orientation Source # | See |
FromAttrVal PrintErrors Source # | See |
FromAttrVal CellComments Source # | See |
FromAttrVal ReadingOrder Source # | |
FromAttrVal PatternType Source # | |
FromAttrVal LineStyle Source # | |
FromAttrVal FontVerticalAlignment Source # | |
FromAttrVal FontUnderline Source # | |
FromAttrVal FontScheme Source # | |
FromAttrVal FontFamily Source # | See 18.18.94 "ST_FontFamily (Font Family)" (p. 2517) |
FromAttrVal CellVerticalAlignment Source # | |
FromAttrVal CellHorizontalAlignment Source # | |
FromAttrVal SqRef Source # | |
FromAttrVal PaneState Source # | See |
FromAttrVal PaneType Source # | See |
FromAttrVal SheetViewType Source # | See |
fromAttribute :: FromAttrVal a => Name -> Cursor -> [a] Source #
required attribute parsing
maybeAttribute :: FromAttrVal a => Name -> Cursor -> [Maybe a] Source #
parsing optional attributes
maybeElementValue :: FromAttrVal a => Name -> Cursor -> [Maybe a] Source #
maybeFromElement :: FromCursor a => Name -> Cursor -> [Maybe a] Source #