-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | SVG backend for diagrams drawing EDSL.
--   
--   This package provides a modular backend for rendering diagrams created
--   with the diagrams EDSL using SVG. It uses <tt>blaze-svg</tt> to be a
--   fast, pure-Haskell backend.
--   
--   More documentation: Github README :
--   <a>https://github.com/diagrams/diagrams-svg/blob/master/README.md</a>
@package diagrams-svg
@version 0.6.0.1


-- | The SVG backend.
module Diagrams.Backend.SVG
data SVG
SVG :: SVG

-- | Backend-specific rendering options.
instance Typeable SVG
instance Show SVG
instance Renderable Text SVG
instance Renderable (Path R2) SVG
instance Renderable (Trail R2) SVG
instance Renderable (Segment R2) SVG
instance Backend SVG R2
instance Monoid (Render SVG R2)


-- | Convenient creation of command-line-driven executables for rendering
--   diagrams using the SVG backend.
module Diagrams.Backend.SVG.CmdLine

-- | This is the simplest way to render diagrams, and is intended to be
--   used like so:
--   
--   <pre>
--   ... definitions ...
--   
--   main = defaultMain myDiagram
--   </pre>
--   
--   Compiling this file will result in an executable which takes various
--   command-line options for setting the size, output file, and so on, and
--   renders <tt>myDiagram</tt> with the specified options.
--   
--   Pass <tt>--help</tt> to the generated executable to see all available
--   options.
defaultMain :: Diagram SVG R2 -> IO ()

-- | <tt>multiMain</tt> is like <a>defaultMain</a>, except instead of a
--   single diagram it takes a list of diagrams paired with names as input.
--   The generated executable then takes an argument specifying the name of
--   the diagram that should be rendered. This is a convenient way to
--   create an executable that can render many different diagrams without
--   modifying the source code in between each one.
multiMain :: [(String, Diagram SVG R2)] -> IO ()
instance Typeable DiagramOpts
instance Show DiagramOpts
instance Data DiagramOpts
