xlsx-1.1.4: Simple and incomplete Excel file parser/writer

Safe Haskell | None
Language | Haskell2010

Codec.Xlsx.Types.Variant

Synopsis

- data Variant
  - = VtBlob ByteString
  - | VtBool Bool
  - | VtDecimal Double
  - | VtLpwstr Text
  - | VtInt Int
- variantFromNode :: Node -> [Variant]
- killWhitespace :: Text -> Text
- decodeBase64 :: MonadFail m => Text -> m ByteString
- vt :: Text -> Name
- docPropsVtNs :: Text
- variantToElement :: Variant -> Element

# Documentation

data Variant Source #

Constructors

VtBlob ByteString |
VtBool Bool |
VtDecimal Double |
VtLpwstr Text |
VtInt Int |

#### Instances

Instances details

NFData Variant Source # |
Instance details Defined in Codec.Xlsx.Types.Variant Methods rnf :: Variant -> () Source #
Generic Variant Source # |

Instance details

Defined in Codec.Xlsx.Types.Variant

Associated Types

type Rep Variant |

Instance details

Defined in Codec.Xlsx.Types.Variant

type Rep Variant = D1 ('MetaData "Variant" "Codec.Xlsx.Types.Variant" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "VtBlob" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)) :+: C1 ('MetaCons "VtBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "VtDecimal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :+: (C1 ('MetaCons "VtLpwstr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "VtInt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

Methods

from :: Variant -> Rep Variant x Source #

to :: Rep Variant x -> Variant Source #

Show Variant Source # |
Instance details Defined in Codec.Xlsx.Types.Variant Methods showsPrec :: Int -> Variant -> ShowS Source # show :: Variant -> String Source # showList :: [Variant] -> ShowS Source #
Eq Variant Source # |
Instance details Defined in Codec.Xlsx.Types.Variant Methods (==) :: Variant -> Variant -> Bool Source # (/=) :: Variant -> Variant -> Bool Source #
FromCursor Variant Source # |
Instance details Defined in Codec.Xlsx.Types.Variant Methods fromCursor :: Cursor -> [Variant] Source #
type Rep Variant Source # |

Instance details

Defined in Codec.Xlsx.Types.Variant

type Rep Variant = D1 ('MetaData "Variant" "Codec.Xlsx.Types.Variant" "xlsx-1.1.4-G0KawmQS4mL8oRGRTaTy8Y" 'False) ((C1 ('MetaCons "VtBlob" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)) :+: C1 ('MetaCons "VtBool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "VtDecimal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :+: (C1 ('MetaCons "VtLpwstr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "VtInt" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

variantFromNode :: Node -> [Variant] Source #

killWhitespace :: Text -> Text Source #

decodeBase64 :: MonadFail m => Text -> m ByteString Source #

vt :: Text -> Name Source #

Add doc props variant types namespace to name

docPropsVtNs :: Text Source #

variantToElement :: Variant -> Element Source #