Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class ToDocument a where
- documentFromElement :: Text -> Element -> Document
- documentFromNsElement :: Text -> Text -> Element -> Document
- class ToElement a where
- countedElementList :: Name -> [Element] -> Element
- elementList :: Name -> [(Name, Text)] -> [Element] -> Element
- elementListSimple :: Name -> [Element] -> Element
- nonEmptyElListSimple :: Name -> [Element] -> Maybe Element
- leafElement :: Name -> [(Name, Text)] -> Element
- emptyElement :: Name -> Element
- elementContent :: Name -> Text -> Element
- elementContentPreserved :: Name -> Text -> Element
- elementValue :: ToAttrVal a => Name -> a -> Element
- class ToAttrVal a where
- (.=) :: ToAttrVal a => Name -> a -> (Name, Text)
- (.=?) :: ToAttrVal a => Name -> Maybe a -> Maybe (Name, Text)
- setAttr :: ToAttrVal a => Name -> a -> Element -> Element
- addNS :: Text -> Element -> Element
- mainNamespace :: Text
- txti :: Integral a => a -> Text
- txtb :: Bool -> Text
- txtd :: Double -> Text
- justNonDef :: Eq a => a -> a -> Maybe a
- justTrue :: Bool -> Maybe Bool
- justFalse :: Bool -> Maybe Bool
Rendering documents
class ToDocument a where Source #
toDocument :: a -> Document Source #
Rendering elements
class ToElement a where Source #
emptyElement :: Name -> Element Source #
Rendering attributes
class ToAttrVal a where Source #
Dealing with namespaces
addNS :: Text -> Element -> Element Source #
Set the namespace for the entire document
This follows the same policy that the rest of the xlsx package uses.
mainNamespace :: Text Source #
The main namespace for Excel
Misc
justNonDef :: Eq a => a -> a -> Maybe a Source #