| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Blaze.Svg11
Description
This module exports SVG combinators used to create documents.
Synopsis
- (!?) :: Attributable h => h -> (Bool, Attribute) -> h
- contents :: MarkupM a -> MarkupM a
- customAttribute :: Tag -> AttributeValue -> Attribute
- dataAttribute :: Tag -> AttributeValue -> Attribute
- lazyText :: Text -> Markup
- lazyTextComment :: Text -> Markup
- lazyTextValue :: Text -> AttributeValue
- preEscapedLazyText :: Text -> Markup
- preEscapedLazyTextValue :: Text -> AttributeValue
- preEscapedString :: String -> Markup
- preEscapedStringValue :: String -> AttributeValue
- preEscapedText :: Text -> Markup
- preEscapedTextValue :: Text -> AttributeValue
- string :: String -> Markup
- stringComment :: String -> Markup
- stringTag :: String -> Tag
- stringValue :: String -> AttributeValue
- text :: Text -> Markup
- textComment :: Text -> Markup
- textTag :: Text -> Tag
- textValue :: Text -> AttributeValue
- unsafeByteString :: ByteString -> Markup
- unsafeByteStringComment :: ByteString -> Markup
- unsafeByteStringValue :: ByteString -> AttributeValue
- unsafeLazyByteString :: ByteString -> Markup
- unsafeLazyByteStringComment :: ByteString -> Markup
- unsafeLazyByteStringValue :: ByteString -> AttributeValue
- class ToMarkup a where
- toMarkup :: a -> Markup
- preEscapedToMarkup :: a -> Markup
- class ToValue a where
- toValue :: a -> AttributeValue
- preEscapedToValue :: a -> AttributeValue
- (!) :: Attributable h => h -> Attribute -> h
- data Attribute
- data AttributeValue
- type Markup = MarkupM ()
- data Tag
- module Text.Blaze.Svg
- docType :: Svg
- docTypeSvg :: Svg -> Svg
- a :: Svg -> Svg
- altglyph :: Svg -> Svg
- altglyphdef :: Svg
- altglyphitem :: Svg
- animate :: Svg
- animatecolor :: Svg
- animatemotion :: Svg
- animatetransform :: Svg
- circle :: Svg
- clippath :: Svg -> Svg
- colorProfile :: Svg
- cursor :: Svg
- defs :: Svg -> Svg
- desc :: Svg -> Svg
- ellipse :: Svg
- feblend :: Svg
- fecolormatrix :: Svg
- fecomponenttransfer :: Svg
- fecomposite :: Svg
- feconvolvematrix :: Svg
- fediffuselighting :: Svg
- fedisplacementmap :: Svg
- fedistantlight :: Svg
- feflood :: Svg
- fefunca :: Svg
- fefuncb :: Svg
- fefuncg :: Svg
- fefuncr :: Svg
- fegaussianblur :: Svg
- feimage :: Svg
- femerge :: Svg
- femergenode :: Svg
- femorphology :: Svg
- feoffset :: Svg
- fepointlight :: Svg
- fespecularlighting :: Svg
- fespotlight :: Svg
- fetile :: Svg
- feturbulence :: Svg
- filter_ :: Svg -> Svg
- font :: Svg
- fontFace :: Svg
- fontFaceFormat :: Svg
- fontFaceName :: Svg
- fontFaceSrc :: Svg
- fontFaceUri :: Svg
- foreignobject :: Svg -> Svg
- g :: Svg -> Svg
- glyph :: Svg -> Svg
- glyphref :: Svg
- hkern :: Svg
- image :: Svg
- line :: Svg
- lineargradient :: Svg -> Svg
- marker :: Svg -> Svg
- mask :: Svg -> Svg
- metadata :: Svg -> Svg
- missingGlyph :: Svg -> Svg
- mpath :: Svg
- path :: Svg
- pattern :: Svg -> Svg
- polygon :: Svg
- polyline :: Svg
- radialgradient :: Svg -> Svg
- rect :: Svg
- script :: Svg -> Svg
- set :: Svg
- stop :: Svg
- style :: Svg -> Svg
- svg :: Svg -> Svg
- switch :: Svg -> Svg
- symbol :: Svg -> Svg
- text_ :: Svg -> Svg
- textpath :: Svg -> Svg
- title :: Svg -> Svg
- tref :: Svg
- tspan :: Svg -> Svg
- use :: Svg
- view :: Svg
- vkern :: Svg
Documentation
customAttribute :: Tag -> AttributeValue -> Attribute #
dataAttribute :: Tag -> AttributeValue -> Attribute #
lazyTextComment :: Text -> Markup #
lazyTextValue :: Text -> AttributeValue #
preEscapedLazyText :: Text -> Markup #
preEscapedLazyTextValue :: Text -> AttributeValue #
preEscapedString :: String -> Markup #
preEscapedStringValue :: String -> AttributeValue #
preEscapedText :: Text -> Markup #
preEscapedTextValue :: Text -> AttributeValue #
stringComment :: String -> Markup #
stringValue :: String -> AttributeValue #
textComment :: Text -> Markup #
textValue :: Text -> AttributeValue #
unsafeByteString :: ByteString -> Markup #
unsafeByteStringComment :: ByteString -> Markup #
unsafeByteStringValue :: ByteString -> AttributeValue #
unsafeLazyByteString :: ByteString -> Markup #
unsafeLazyByteStringComment :: ByteString -> Markup #
unsafeLazyByteStringValue :: ByteString -> AttributeValue #
Minimal complete definition
Instances
| ToMarkup Markup # | |
Defined in Text.Blaze | |
| ToMarkup Int32 # | |
Defined in Text.Blaze | |
| ToMarkup Int64 # | |
Defined in Text.Blaze | |
| ToMarkup Word32 # | |
Defined in Text.Blaze | |
| ToMarkup Word64 # | |
Defined in Text.Blaze | |
| ToMarkup Text # | |
Defined in Text.Blaze | |
| ToMarkup Builder # | |
Defined in Text.Blaze | |
| ToMarkup Text # | |
Defined in Text.Blaze | |
| ToMarkup String # | |
Defined in Text.Blaze | |
| ToMarkup Integer # | |
Defined in Text.Blaze | |
| ToMarkup Natural # | |
Defined in Text.Blaze | |
| ToMarkup Bool # | |
Defined in Text.Blaze | |
| ToMarkup Char # | |
Defined in Text.Blaze | |
| ToMarkup Double # | |
Defined in Text.Blaze | |
| ToMarkup Float # | |
Defined in Text.Blaze | |
| ToMarkup Int # | |
Defined in Text.Blaze | |
| ToMarkup Word # | |
Defined in Text.Blaze | |
| ToMarkup (NonEmpty Char) # | |
Defined in Text.Blaze | |
| ToMarkup [Markup] # | |
Defined in Text.Blaze | |
Minimal complete definition
Instances
| ToValue AttributeValue # | |
Defined in Text.Blaze Methods toValue :: AttributeValue -> AttributeValue # | |
| ToValue Int32 # | |
Defined in Text.Blaze | |
| ToValue Int64 # | |
Defined in Text.Blaze | |
| ToValue Word32 # | |
Defined in Text.Blaze | |
| ToValue Word64 # | |
Defined in Text.Blaze | |
| ToValue Text # | |
Defined in Text.Blaze | |
| ToValue Builder # | |
Defined in Text.Blaze | |
| ToValue Text # | |
Defined in Text.Blaze | |
| ToValue String # | |
Defined in Text.Blaze | |
| ToValue Integer # | |
Defined in Text.Blaze | |
| ToValue Bool # | |
Defined in Text.Blaze | |
| ToValue Char # | |
Defined in Text.Blaze | |
| ToValue Double # | |
Defined in Text.Blaze | |
| ToValue Float # | |
Defined in Text.Blaze | |
| ToValue Int # | |
Defined in Text.Blaze | |
| ToValue Word # | |
Defined in Text.Blaze | |
| ToValue (NonEmpty Char) # | |
Defined in Text.Blaze Methods toValue :: NonEmpty Char -> AttributeValue # preEscapedToValue :: NonEmpty Char -> AttributeValue # | |
data AttributeValue #
Instances
| ToValue AttributeValue # | |
Defined in Text.Blaze Methods toValue :: AttributeValue -> AttributeValue # | |
| Monoid AttributeValue # | |
Defined in Text.Blaze.Internal Methods mappend :: AttributeValue -> AttributeValue -> AttributeValue mconcat :: [AttributeValue] -> AttributeValue | |
| Semigroup AttributeValue # | |
Defined in Text.Blaze.Internal Methods (<>) :: AttributeValue -> AttributeValue -> AttributeValue sconcat :: NonEmpty AttributeValue -> AttributeValue stimes :: Integral b => b -> AttributeValue -> AttributeValue | |
| IsString AttributeValue # | |
Defined in Text.Blaze.Internal Methods fromString :: String -> AttributeValue | |
Instances
| IsString Tag # | |
Defined in Text.Blaze.Internal Methods fromString :: String -> Tag | |
module Text.Blaze.Svg
Arguments
| :: Svg | The document type SVG. |
Combinator for the document type. This should be placed at the top of every SVG page.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">Combinator for the <svg> element. This combinator will also
insert the correct doctype.
Combinator for the <altGlyph> element.
Arguments
| :: Svg | Resulting SVG. |
Combinator for the <animateTransform /> element.
Combinator for the <clipPath> element.
Arguments
| :: Svg | Resulting SVG. |
Combinator for the <feComponentTransfer /> element.
Arguments
| :: Svg | Resulting SVG. |
Combinator for the <feConvolveMatrix /> element.
Arguments
| :: Svg | Resulting SVG. |
Combinator for the <feDiffuseLighting /> element.
Arguments
| :: Svg | Resulting SVG. |
Combinator for the <feDisplacementMap /> element.
Arguments
| :: Svg | Resulting SVG. |
Combinator for the <feSpecularLighting /> element.
Arguments
| :: Svg | Resulting SVG. |
Combinator for the <font-face-format /> element.
Combinator for the <foreignObject> element.
Combinator for the <linearGradient> element.
Combinator for the <metadata> element.
Combinator for the <missing-glyph> element.
Combinator for the <radialGradient> element.
Combinator for the <textPath> element.