{-# LANGUAGE OverloadedStrings #-} -- | This module exports SVG combinators. module Text.Blaze.Front.Svg ( module Text.Blaze.Front , Svg , toSvg , preEscapedToSvg , circle , defs , ellipse , g , line , linearGradient , mask , path , pattern , polygon , polyline , radialGradient , rect , stop , text , tspan ) where import Text.Blaze.Front import Text.Blaze.Front.Internal hiding (text) type Svg ev = Markup ev toSvg :: ToMarkup a => a -> Svg ev toSvg = toMarkup preEscapedToSvg :: ToMarkup a => a -> Svg ev preEscapedToSvg = preEscapedToMarkup circle :: Svg ev circle = Leaf "circle" "" defs :: Svg ev -> Svg ev defs = Parent "defs" "" ellipse :: Svg ev ellipse = Leaf "ellipse" "" g :: Svg ev -> Svg ev g = Parent "g" "" line :: Svg ev line = Leaf "line" "" linearGradient :: Svg ev -> Svg ev linearGradient = Parent "linearGradient" "" mask :: Svg ev -> Svg ev mask = Parent "mask" "" path :: Svg ev path = Leaf "path" "" pattern :: Svg ev -> Svg ev pattern = Parent "pattern" "" polygon :: Svg ev polygon = Leaf "polygon" "" polyline :: Svg ev polyline = Leaf "polyline" "" radialGradient :: Svg ev -> Svg ev radialGradient = Parent "radialGradient" "" rect :: Svg ev rect = Leaf "rect" "" stop :: Svg ev stop = Leaf "stop" "" text :: Svg ev -> Svg ev text = Parent "text" "" tspan :: Svg ev -> Svg ev tspan = Parent "tspan" ""