Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class ToDocument a where
- toDocument :: a -> Document
- documentFromElement :: Text -> Element -> Document
- documentFromNsElement :: Text -> Text -> Element -> Document
- documentFromNsPrefElement :: Text -> Text -> Maybe Text -> Element -> Document
- class ToElement a where
- toElement :: Name -> a -> Element
- countedElementList :: Name -> [Element] -> Element
- nonEmptyCountedElementList :: Name -> [Element] -> Maybe Element
- elementList :: Name -> [(Name, Text)] -> [Element] -> Element
- elementListSimple :: Name -> [Element] -> Element
- nonEmptyElListSimple :: Name -> [Element] -> Maybe Element
- leafElement :: Name -> [(Name, Text)] -> Element
- emptyElement :: Name -> Element
- elementContent0 :: Name -> [(Name, Text)] -> Text -> Element
- elementContent :: Name -> Text -> Element
- elementContentPreserved :: Name -> Text -> Element
- elementValue :: ToAttrVal a => Name -> a -> Element
- elementValueDef :: (Eq a, ToAttrVal a) => Name -> a -> 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 -> Maybe 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 #
Instances
ToDocument StyleSheet Source # | |
Defined in Codec.Xlsx.Types.StyleSheet toDocument :: StyleSheet -> Document Source # | |
ToDocument CustomProperties Source # | |
Defined in Codec.Xlsx.Types.Internal.CustomProperties toDocument :: CustomProperties -> Document Source # | |
ToDocument Relationships Source # | |
Defined in Codec.Xlsx.Types.Internal.Relationships toDocument :: Relationships -> Document Source # | |
ToDocument ChartSpace Source # | |
Defined in Codec.Xlsx.Types.Drawing.Chart toDocument :: ChartSpace -> Document Source # | |
ToDocument UnresolvedDrawing Source # | |
Defined in Codec.Xlsx.Types.Drawing toDocument :: UnresolvedDrawing -> Document Source # | |
ToDocument CommentTable Source # | |
Defined in Codec.Xlsx.Types.Internal.CommentTable toDocument :: CommentTable -> Document Source # | |
ToDocument SharedStringTable Source # | |
Defined in Codec.Xlsx.Types.Internal.SharedStringTable toDocument :: SharedStringTable -> Document Source # |
documentFromElement :: Text -> Element -> Document Source #
documentFromNsElement :: Text -> Text -> Element -> Document Source #
Rendering elements
class ToElement a where Source #
Instances
countedElementList :: Name -> [Element] -> Element Source #
nonEmptyCountedElementList :: Name -> [Element] -> Maybe Element Source #
elementList :: Name -> [(Name, Text)] -> [Element] -> Element Source #
elementListSimple :: Name -> [Element] -> Element Source #
nonEmptyElListSimple :: Name -> [Element] -> Maybe Element Source #
leafElement :: Name -> [(Name, Text)] -> Element Source #
emptyElement :: Name -> Element Source #
elementContent0 :: Name -> [(Name, Text)] -> Text -> Element Source #
elementContent :: Name -> Text -> Element Source #
elementContentPreserved :: Name -> Text -> Element Source #
elementValue :: ToAttrVal a => Name -> a -> Element Source #
elementValueDef :: (Eq a, ToAttrVal a) => Name -> a -> a -> Element Source #
Rendering attributes
class ToAttrVal a where Source #
Instances
Dealing with namespaces
addNS :: Text -> Maybe 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 #