pandoc-plantuml-diagrams-0.1.0.3: Render and insert PlantUML diagrams with Pandoc

Copyright(c) Jonas Weber, 2015
LicenseISC
Safe HaskellSafe
LanguageHaskell2010

Text.Pandoc.PlantUML.Filter.Types

Description

 

Synopsis

Documentation

type ImageName = String Source

The name of an image, without extension, usually a hash

newtype DiagramSource Source

The source of a diagram

Constructors

DiagramSource String 

type ImageFormat = String Source

An image format, e.g. "eps"

data ImageFileName Source

A filename of an image. It contains the basename (myawesomepicture) and the extension (jpg). It can be shown, which is basically "myawesomepicture.jpg"

Instances

Eq ImageFileName Source 
Show ImageFileName Source

Show the image file name by joining basename and extension with a dot, yielding picture.jpg

class Monad m => ImageIO m where Source

External impure actions are encapsulated in this monad.

Methods

doesImageExist :: ImageFileName -> m Bool Source

Tells whether an image with the given file name is already present in the store (e.g., the filesystem).

renderImage :: ImageFileName -> DiagramSource -> m () Source

Calls out to an external diagram processor (PlantUML) to render the source to the given image file name.