blaze-svg
Safe HaskellNone
LanguageHaskell2010

Text.Blaze.Svg11

Description

This module exports SVG combinators used to create documents.

Synopsis

Documentation

(!?) :: Attributable h => h -> (Bool, Attribute) -> h #

contents :: MarkupM a -> MarkupM a #

lazyText :: Text -> Markup #

string :: String -> Markup #

stringComment :: String -> Markup #

stringTag :: String -> Tag #

text :: Text -> Markup #

textComment :: Text -> Markup #

textTag :: Text -> Tag #

unsafeByteString :: ByteString -> Markup #

unsafeLazyByteString :: ByteString -> Markup #

class ToMarkup a where #

Minimal complete definition

toMarkup

Methods

toMarkup :: a -> Markup #

preEscapedToMarkup :: a -> Markup #

Instances

Instances details
ToMarkup Markup # 
Instance details

Defined in Text.Blaze

ToMarkup Int32 # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Int32 -> Markup #

preEscapedToMarkup :: Int32 -> Markup #

ToMarkup Int64 # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Int64 -> Markup #

preEscapedToMarkup :: Int64 -> Markup #

ToMarkup Word32 # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Word32 -> Markup #

preEscapedToMarkup :: Word32 -> Markup #

ToMarkup Word64 # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Word64 -> Markup #

preEscapedToMarkup :: Word64 -> Markup #

ToMarkup Text # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Text -> Markup #

preEscapedToMarkup :: Text -> Markup #

ToMarkup Builder # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Builder -> Markup #

preEscapedToMarkup :: Builder -> Markup #

ToMarkup Text # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Text -> Markup #

preEscapedToMarkup :: Text -> Markup #

ToMarkup String # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: String -> Markup #

preEscapedToMarkup :: String -> Markup #

ToMarkup Integer # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Integer -> Markup #

preEscapedToMarkup :: Integer -> Markup #

ToMarkup Natural # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Natural -> Markup #

preEscapedToMarkup :: Natural -> Markup #

ToMarkup Bool # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Bool -> Markup #

preEscapedToMarkup :: Bool -> Markup #

ToMarkup Char # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Char -> Markup #

preEscapedToMarkup :: Char -> Markup #

ToMarkup Double # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Double -> Markup #

preEscapedToMarkup :: Double -> Markup #

ToMarkup Float # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Float -> Markup #

preEscapedToMarkup :: Float -> Markup #

ToMarkup Int # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Int -> Markup #

preEscapedToMarkup :: Int -> Markup #

ToMarkup Word # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: Word -> Markup #

preEscapedToMarkup :: Word -> Markup #

ToMarkup (NonEmpty Char) # 
Instance details

Defined in Text.Blaze

Methods

toMarkup :: NonEmpty Char -> Markup #

preEscapedToMarkup :: NonEmpty Char -> Markup #

ToMarkup [Markup] # 
Instance details

Defined in Text.Blaze

class ToValue a where #

Minimal complete definition

toValue

Instances

Instances details
ToValue AttributeValue # 
Instance details

Defined in Text.Blaze

ToValue Int32 # 
Instance details

Defined in Text.Blaze

ToValue Int64 # 
Instance details

Defined in Text.Blaze

ToValue Word32 # 
Instance details

Defined in Text.Blaze

Methods

toValue :: Word32 -> AttributeValue #

preEscapedToValue :: Word32 -> AttributeValue #

ToValue Word64 # 
Instance details

Defined in Text.Blaze

Methods

toValue :: Word64 -> AttributeValue #

preEscapedToValue :: Word64 -> AttributeValue #

ToValue Text # 
Instance details

Defined in Text.Blaze

ToValue Builder # 
Instance details

Defined in Text.Blaze

Methods

toValue :: Builder -> AttributeValue #

preEscapedToValue :: Builder -> AttributeValue #

ToValue Text # 
Instance details

Defined in Text.Blaze

ToValue String # 
Instance details

Defined in Text.Blaze

Methods

toValue :: String -> AttributeValue #

preEscapedToValue :: String -> AttributeValue #

ToValue Integer # 
Instance details

Defined in Text.Blaze

Methods

toValue :: Integer -> AttributeValue #

preEscapedToValue :: Integer -> AttributeValue #

ToValue Bool # 
Instance details

Defined in Text.Blaze

ToValue Char # 
Instance details

Defined in Text.Blaze

ToValue Double # 
Instance details

Defined in Text.Blaze

Methods

toValue :: Double -> AttributeValue #

preEscapedToValue :: Double -> AttributeValue #

ToValue Float # 
Instance details

Defined in Text.Blaze

ToValue Int # 
Instance details

Defined in Text.Blaze

ToValue Word # 
Instance details

Defined in Text.Blaze

ToValue (NonEmpty Char) # 
Instance details

Defined in Text.Blaze

Methods

toValue :: NonEmpty Char -> AttributeValue #

preEscapedToValue :: NonEmpty Char -> AttributeValue #

(!) :: Attributable h => h -> Attribute -> h #

data Attribute #

Instances

Instances details
Monoid Attribute # 
Instance details

Defined in Text.Blaze.Internal

Semigroup Attribute # 
Instance details

Defined in Text.Blaze.Internal

Methods

(<>) :: Attribute -> Attribute -> Attribute

sconcat :: NonEmpty Attribute -> Attribute

stimes :: Integral b => b -> Attribute -> Attribute

data AttributeValue #

Instances

Instances details
ToValue AttributeValue # 
Instance details

Defined in Text.Blaze

Monoid AttributeValue # 
Instance details

Defined in Text.Blaze.Internal

Semigroup AttributeValue # 
Instance details

Defined in Text.Blaze.Internal

IsString AttributeValue # 
Instance details

Defined in Text.Blaze.Internal

Methods

fromString :: String -> AttributeValue

type Markup = MarkupM () #

data Tag #

Instances

Instances details
IsString Tag # 
Instance details

Defined in Text.Blaze.Internal

Methods

fromString :: String -> Tag

docType Source #

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">

docTypeSvg Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <svg> element. This combinator will also insert the correct doctype.

a Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <a> element.

altglyph Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <altGlyph> element.

altglyphdef Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <altGlyphDef /> element.

altglyphitem Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <altGlyphItem /> element.

animate Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <animate /> element.

animatecolor Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <animateColor /> element.

animatemotion Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <animateMotion /> element.

animatetransform Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <animateTransform /> element.

circle Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <circle /> element.

clippath Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <clipPath> element.

colorProfile Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <color-profile /> element.

cursor Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <cursor /> element.

defs Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <defs> element.

desc Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <desc> element.

ellipse Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <ellipse /> element.

feblend Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feBlend /> element.

fecolormatrix Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feColorMatrix /> element.

fecomponenttransfer Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feComponentTransfer /> element.

fecomposite Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feComposite /> element.

feconvolvematrix Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feConvolveMatrix /> element.

fediffuselighting Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feDiffuseLighting /> element.

fedisplacementmap Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feDisplacementMap /> element.

fedistantlight Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feDistantLight /> element.

feflood Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feFlood /> element.

fefunca Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feFuncA /> element.

fefuncb Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feFuncB /> element.

fefuncg Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feFuncG /> element.

fefuncr Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feFuncR /> element.

fegaussianblur Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feGaussianBlur /> element.

feimage Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feImage /> element.

femerge Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feMerge /> element.

femergenode Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feMergeNode /> element.

femorphology Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feMorphology /> element.

feoffset Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feOffset /> element.

fepointlight Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <fePointLight /> element.

fespecularlighting Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feSpecularLighting /> element.

fespotlight Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feSpotLight /> element.

fetile Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feTile /> element.

feturbulence Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <feTurbulence /> element.

filter_ Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <filter> element.

font Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <font /> element.

fontFace Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <font-face /> element.

fontFaceFormat Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <font-face-format /> element.

fontFaceName Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <font-face-name /> element.

fontFaceSrc Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <font-face-src /> element.

fontFaceUri Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <font-face-uri /> element.

foreignobject Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <foreignObject> element.

g Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <g> element.

glyph Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <glyph> element.

glyphref Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <glyphRef /> element.

hkern Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <hkern /> element.

image Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <image /> element.

line Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <line /> element.

lineargradient Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <linearGradient> element.

marker Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <marker> element.

mask Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <mask> element.

metadata Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <metadata> element.

missingGlyph Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <missing-glyph> element.

mpath Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <mpath /> element.

path Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <path /> element.

pattern Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <pattern> element.

polygon Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <polygon /> element.

polyline Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <polyline /> element.

radialgradient Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <radialGradient> element.

rect Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <rect /> element.

script Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <script> element.

set Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <set /> element.

stop Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <stop /> element.

style Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <style> element.

svg Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <svg> element.

switch Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <switch> element.

symbol Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <symbol> element.

text_ Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <text> element.

textpath Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <textPath> element.

title Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <title> element.

tref Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <tref /> element.

tspan Source #

Arguments

:: Svg

Inner SVG.

-> Svg

Resulting SVG.

Combinator for the <tspan> element.

use Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <use /> element.

view Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <view /> element.

vkern Source #

Arguments

:: Svg

Resulting SVG.

Combinator for the <vkern /> element.