pandoc-plantuml-diagrams-0.1.1.0: Render and insert PlantUML diagrams with Pandoc
Copyright(c) Jonas Weber 2015
LicenseISC
Safe HaskellSafe-Inferred
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 Text 

type ImageFormat = Text 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

Instances details
Eq ImageFileName Source # 
Instance details

Defined in Text.Pandoc.PlantUML.Filter.Types

Show ImageFileName Source #

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

Instance details

Defined in Text.Pandoc.PlantUML.Filter.Types

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.

Instances

Instances details
ImageIO IO Source # 
Instance details

Defined in Text.Pandoc.PlantUML.Filter.IORender