Safe Haskell | None |
---|---|
Language | Haskell2010 |
Codec.Xlsx.Parser.Internal
Synopsis
- data ParseException = ParseException String
- n_ :: Text -> Name
- nodeElNameIs :: Node -> Name -> Bool
- class FromCursor a where
- fromCursor :: Cursor -> [a]
- class FromAttrVal a where
- fromAttrVal :: Reader a
- fromAttribute :: FromAttrVal a => Name -> Cursor -> [a]
- fromAttributeDef :: FromAttrVal a => Name -> a -> Cursor -> [a]
- maybeAttribute :: FromAttrVal a => Name -> Cursor -> [Maybe a]
- fromElementValue :: FromAttrVal a => Name -> Cursor -> [a]
- maybeElementValue :: FromAttrVal a => Name -> Cursor -> [Maybe a]
- maybeElementValueDef :: FromAttrVal a => Name -> a -> Cursor -> [Maybe a]
- maybeBoolElementValue :: Name -> Cursor -> [Maybe Bool]
- maybeFromElement :: FromCursor a => Name -> Cursor -> [Maybe a]
- attrValIs :: (Eq a, FromAttrVal a) => Name -> a -> Axis
- contentOrEmpty :: Cursor -> [Text]
- readSuccess :: a -> Either String (a, Text)
- readFailure :: Text -> Either String (a, Text)
- invalidText :: Text -> Text -> Either String (a, Text)
- defaultReadFailure :: Either String (a, Text)
- module Codec.Xlsx.Parser.Internal.Util
- module Codec.Xlsx.Parser.Internal.Fast
Documentation
data ParseException Source #
Constructors
ParseException String |
Instances
class FromCursor a where Source #
Methods
fromCursor :: Cursor -> [a] Source #
Instances
FromCursor ColumnsProperties Source # | |
Defined in Codec.Xlsx.Types Methods fromCursor :: Cursor -> [ColumnsProperties] Source # | |
FromCursor AutoFilter Source # | |
Defined in Codec.Xlsx.Types.AutoFilter Methods fromCursor :: Cursor -> [AutoFilter] Source # | |
FromCursor FilterCriterion Source # | |
Defined in Codec.Xlsx.Types.AutoFilter Methods fromCursor :: Cursor -> [FilterCriterion] Source # | |
FromCursor Formula Source # | See |
Defined in Codec.Xlsx.Types.Common Methods fromCursor :: Cursor -> [Formula] Source # | |
FromCursor XlsxText Source # | See |
Defined in Codec.Xlsx.Types.Common Methods fromCursor :: Cursor -> [XlsxText] Source # | |
FromCursor CfRule Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods fromCursor :: Cursor -> [CfRule] Source # | |
FromCursor CfValue Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods fromCursor :: Cursor -> [CfValue] Source # | |
FromCursor DataBarOptions Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods fromCursor :: Cursor -> [DataBarOptions] Source # | |
FromCursor IconSetOptions Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods fromCursor :: Cursor -> [IconSetOptions] Source # | |
FromCursor MaxCfValue Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods fromCursor :: Cursor -> [MaxCfValue] Source # | |
FromCursor MinCfValue Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods fromCursor :: Cursor -> [MinCfValue] Source # | |
FromCursor DataValidation Source # | |
Defined in Codec.Xlsx.Types.DataValidation Methods fromCursor :: Cursor -> [DataValidation] Source # | |
FromCursor Anchoring Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [Anchoring] Source # | |
FromCursor ClientData Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [ClientData] Source # | |
FromCursor FillMode Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [FillMode] Source # | |
FromCursor GraphNonVisual Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [GraphNonVisual] Source # | |
FromCursor Marker Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [Marker] Source # | |
FromCursor NonVisualDrawingProperties Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [NonVisualDrawingProperties] Source # | |
FromCursor PicNonVisual Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [PicNonVisual] Source # | |
FromCursor UnresolvedDrawing Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [UnresolvedDrawing] Source # | |
FromCursor AreaSeries Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [AreaSeries] Source # | |
FromCursor BarSeries Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [BarSeries] Source # | |
FromCursor ChartSpace Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [ChartSpace] Source # | |
FromCursor ChartTitle Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [ChartTitle] Source # | |
FromCursor DataLblProps Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [DataLblProps] Source # | |
FromCursor DataMarker Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [DataMarker] Source # | |
FromCursor DataPoint Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [DataPoint] Source # | |
FromCursor Legend Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [Legend] Source # | |
FromCursor LineSeries Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [LineSeries] Source # | |
FromCursor PieSeries Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [PieSeries] Source # | |
FromCursor ScatterSeries Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [ScatterSeries] Source # | |
FromCursor Series Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods fromCursor :: Cursor -> [Series] Source # | |
FromCursor FillProperties Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [FillProperties] Source # | |
FromCursor Geometry Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [Geometry] Source # | |
FromCursor LineProperties Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [LineProperties] Source # | |
FromCursor Point2D Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [Point2D] Source # | |
FromCursor PositiveSize2D Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [PositiveSize2D] Source # | |
FromCursor ShapeProperties Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [ShapeProperties] Source # | |
FromCursor TextBody Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextBody] Source # | |
FromCursor TextCharacterProperties Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextCharacterProperties] Source # | |
FromCursor TextParagraph Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextParagraph] Source # | |
FromCursor TextRun Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [TextRun] Source # | |
FromCursor Transform2D Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods fromCursor :: Cursor -> [Transform2D] Source # | |
FromCursor CfPair Source # | |
Defined in Codec.Xlsx.Types.Internal.CfPair Methods fromCursor :: Cursor -> [CfPair] Source # | |
FromCursor CommentTable Source # | |
Defined in Codec.Xlsx.Types.Internal.CommentTable Methods fromCursor :: Cursor -> [CommentTable] Source # | |
FromCursor ContentTypes Source # | |
Defined in Codec.Xlsx.Types.Internal.ContentTypes Methods fromCursor :: Cursor -> [ContentTypes] Source # | |
FromCursor CtDefault Source # | |
Defined in Codec.Xlsx.Types.Internal.ContentTypes Methods fromCursor :: Cursor -> [CtDefault] Source # | |
FromCursor Override Source # | |
Defined in Codec.Xlsx.Types.Internal.ContentTypes Methods fromCursor :: Cursor -> [Override] Source # | |
FromCursor CustomProperties Source # | |
Defined in Codec.Xlsx.Types.Internal.CustomProperties Methods fromCursor :: Cursor -> [CustomProperties] Source # | |
FromCursor DvPair Source # | |
Defined in Codec.Xlsx.Types.Internal.DvPair Methods fromCursor :: Cursor -> [DvPair] Source # | |
FromCursor Relationship Source # | |
Defined in Codec.Xlsx.Types.Internal.Relationships Methods fromCursor :: Cursor -> [Relationship] Source # | |
FromCursor Relationships Source # | |
Defined in Codec.Xlsx.Types.Internal.Relationships Methods fromCursor :: Cursor -> [Relationships] Source # | |
FromCursor SharedStringTable Source # | See The optional attributes |
Defined in Codec.Xlsx.Types.Internal.SharedStringTable Methods fromCursor :: Cursor -> [SharedStringTable] Source # | |
FromCursor PageSetup Source # | See |
Defined in Codec.Xlsx.Types.PageSetup Methods fromCursor :: Cursor -> [PageSetup] Source # | |
FromCursor CacheField Source # | |
Defined in Codec.Xlsx.Types.PivotTable.Internal Methods fromCursor :: Cursor -> [CacheField] Source # | |
FromCursor SheetProtection Source # | |
Defined in Codec.Xlsx.Types.Protection Methods fromCursor :: Cursor -> [SheetProtection] Source # | |
FromCursor RichTextRun Source # | See |
Defined in Codec.Xlsx.Types.RichText Methods fromCursor :: Cursor -> [RichTextRun] Source # | |
FromCursor RunProperties Source # | See |
Defined in Codec.Xlsx.Types.RichText Methods fromCursor :: Cursor -> [RunProperties] Source # | |
FromCursor Pane Source # | See |
Defined in Codec.Xlsx.Types.SheetViews Methods fromCursor :: Cursor -> [Pane] Source # | |
FromCursor Selection Source # | See |
Defined in Codec.Xlsx.Types.SheetViews Methods fromCursor :: Cursor -> [Selection] Source # | |
FromCursor SheetView Source # | See |
Defined in Codec.Xlsx.Types.SheetViews Methods fromCursor :: Cursor -> [SheetView] Source # | |
FromCursor Alignment Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Alignment] Source # | |
FromCursor Border Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Border] Source # | |
FromCursor BorderStyle Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [BorderStyle] Source # | |
FromCursor CellXf Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [CellXf] Source # | |
FromCursor Color Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Color] Source # | |
FromCursor Dxf Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Dxf] Source # | |
FromCursor Fill Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Fill] Source # | |
FromCursor FillPattern Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [FillPattern] Source # | |
FromCursor Font Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Font] Source # | |
FromCursor NumFmt Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [NumFmt] Source # | |
FromCursor Protection Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [Protection] Source # | |
FromCursor StyleSheet Source # | See |
Defined in Codec.Xlsx.Types.StyleSheet Methods fromCursor :: Cursor -> [StyleSheet] Source # | |
FromCursor Table Source # | |
Defined in Codec.Xlsx.Types.Table Methods fromCursor :: Cursor -> [Table] Source # | |
FromCursor Variant Source # | |
Defined in Codec.Xlsx.Types.Variant Methods fromCursor :: Cursor -> [Variant] Source # | |
FromCursor (BlipFillProperties RefId) Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [BlipFillProperties RefId] Source # | |
FromCursor (Anchor RefId RefId) Source # | |
Defined in Codec.Xlsx.Types.Drawing | |
FromCursor (DrawingObject RefId RefId) Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods fromCursor :: Cursor -> [DrawingObject RefId RefId] Source # |
class FromAttrVal a where Source #
Methods
fromAttrVal :: Reader a Source #
Instances
FromAttrVal Text Source # | |
Defined in Codec.Xlsx.Parser.Internal Methods fromAttrVal :: Reader Text Source # | |
FromAttrVal SheetState Source # | |
Defined in Codec.Xlsx.Types Methods | |
FromAttrVal CustomFilterOperator Source # | |
Defined in Codec.Xlsx.Types.AutoFilter Methods | |
FromAttrVal DynFilterType Source # | |
Defined in Codec.Xlsx.Types.AutoFilter Methods | |
FromAttrVal FilterByBlank Source # | |
Defined in Codec.Xlsx.Types.AutoFilter Methods | |
FromAttrVal SharedFormulaIndex Source # | |
Defined in Codec.Xlsx.Types.Cell Methods | |
FromAttrVal CellRef Source # | |
Defined in Codec.Xlsx.Types.Common Methods | |
FromAttrVal ErrorType Source # | |
Defined in Codec.Xlsx.Types.Common Methods | |
FromAttrVal Formula Source # | |
Defined in Codec.Xlsx.Types.Common Methods | |
FromAttrVal SqRef Source # | |
Defined in Codec.Xlsx.Types.Common Methods | |
FromAttrVal IconSetType Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods | |
FromAttrVal Inclusion Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods | |
FromAttrVal NStdDev Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods | |
FromAttrVal TimePeriod Source # | |
Defined in Codec.Xlsx.Types.ConditionalFormatting Methods | |
FromAttrVal ErrorStyle Source # | |
Defined in Codec.Xlsx.Types.DataValidation Methods | |
FromAttrVal DrawingElementId Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods | |
FromAttrVal EditAs Source # | |
Defined in Codec.Xlsx.Types.Drawing Methods | |
FromAttrVal BarChartGrouping Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods | |
FromAttrVal BarDirection Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods | |
FromAttrVal ChartGrouping Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods | |
FromAttrVal DataMarkerSymbol Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods | |
FromAttrVal DispBlanksAs Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods | |
FromAttrVal LegendPos Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods | |
FromAttrVal ScatterStyle Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart Methods | |
FromAttrVal Angle Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods | |
FromAttrVal TextAnchoring Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods | |
FromAttrVal TextVertOverflow Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods | |
FromAttrVal TextVertical Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods | |
FromAttrVal TextWrap Source # | |
Defined in Codec.Xlsx.Types.Drawing.Common Methods | |
FromAttrVal RefId Source # | |
Defined in Codec.Xlsx.Types.Internal Methods | |
FromAttrVal CellComments Source # | See |
Defined in Codec.Xlsx.Types.PageSetup Methods | |
FromAttrVal Orientation Source # | See |
Defined in Codec.Xlsx.Types.PageSetup Methods | |
FromAttrVal PageOrder Source # | See |
Defined in Codec.Xlsx.Types.PageSetup Methods | |
FromAttrVal PaperSize Source # | See |
Defined in Codec.Xlsx.Types.PageSetup Methods | |
FromAttrVal PrintErrors Source # | See |
Defined in Codec.Xlsx.Types.PageSetup Methods | |
FromAttrVal ConsolidateFunction Source # | |
Defined in Codec.Xlsx.Types.PivotTable Methods | |
FromAttrVal FieldSortType Source # | |
Defined in Codec.Xlsx.Types.PivotTable Methods | |
FromAttrVal PivotFieldName Source # | |
Defined in Codec.Xlsx.Types.PivotTable Methods | |
FromAttrVal CacheId Source # | |
Defined in Codec.Xlsx.Types.PivotTable.Internal Methods | |
FromAttrVal LegacyPassword Source # | |
Defined in Codec.Xlsx.Types.Protection Methods | |
FromAttrVal PaneState Source # | See |
Defined in Codec.Xlsx.Types.SheetViews Methods | |
FromAttrVal PaneType Source # | See |
Defined in Codec.Xlsx.Types.SheetViews Methods | |
FromAttrVal SheetViewType Source # | See |
Defined in Codec.Xlsx.Types.SheetViews Methods | |
FromAttrVal CellHorizontalAlignment Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal CellVerticalAlignment Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal FontFamily Source # | See 18.18.94 "ST_FontFamily (Font Family)" (p. 2517) |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal FontScheme Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal FontUnderline Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal FontVerticalAlignment Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal LineStyle Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal PatternType Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal ReadingOrder Source # | |
Defined in Codec.Xlsx.Types.StyleSheet Methods | |
FromAttrVal Integer Source # | |
Defined in Codec.Xlsx.Parser.Internal Methods | |
FromAttrVal Bool Source # | |
Defined in Codec.Xlsx.Parser.Internal Methods fromAttrVal :: Reader Bool Source # | |
FromAttrVal Double Source # | |
Defined in Codec.Xlsx.Parser.Internal Methods | |
FromAttrVal Int Source # | |
Defined in Codec.Xlsx.Parser.Internal Methods fromAttrVal :: Reader Int Source # |
fromAttribute :: FromAttrVal a => Name -> Cursor -> [a] Source #
required attribute parsing
fromAttributeDef :: FromAttrVal a => Name -> a -> Cursor -> [a] Source #
parsing optional attributes with defaults
maybeAttribute :: FromAttrVal a => Name -> Cursor -> [Maybe a] Source #
parsing optional attributes
fromElementValue :: FromAttrVal a => Name -> Cursor -> [a] Source #
maybeElementValue :: FromAttrVal a => Name -> Cursor -> [Maybe a] Source #
maybeElementValueDef :: FromAttrVal a => Name -> a -> Cursor -> [Maybe a] Source #
maybeFromElement :: FromCursor a => Name -> Cursor -> [Maybe a] Source #
contentOrEmpty :: Cursor -> [Text] Source #