Copyright | (c) Marcellus Siegburg 2022 |
---|---|
License | MIT |
Maintainer | marcellus.siegburg@uni-due.de |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides the basic functionality to call PlantUML.
Synopsis
- data DiagramType
- drawPlantUmlDiagram :: DiagramType -> ByteString -> IO ByteString
- drawPlantUMLDiagram :: DiagramType -> ByteString -> IO ByteString
Documentation
data DiagramType Source #
An output format for PlantUML.
Instances
Bounded DiagramType Source # | |
Defined in Language.PlantUML.Call minBound :: DiagramType # maxBound :: DiagramType # | |
Enum DiagramType Source # | |
Defined in Language.PlantUML.Call succ :: DiagramType -> DiagramType # pred :: DiagramType -> DiagramType # toEnum :: Int -> DiagramType # fromEnum :: DiagramType -> Int # enumFrom :: DiagramType -> [DiagramType] # enumFromThen :: DiagramType -> DiagramType -> [DiagramType] # enumFromTo :: DiagramType -> DiagramType -> [DiagramType] # enumFromThenTo :: DiagramType -> DiagramType -> DiagramType -> [DiagramType] # | |
Read DiagramType Source # | |
Defined in Language.PlantUML.Call readsPrec :: Int -> ReadS DiagramType # readList :: ReadS [DiagramType] # readPrec :: ReadPrec DiagramType # readListPrec :: ReadPrec [DiagramType] # | |
Show DiagramType Source # | |
Defined in Language.PlantUML.Call showsPrec :: Int -> DiagramType -> ShowS # show :: DiagramType -> String # showList :: [DiagramType] -> ShowS # |
:: DiagramType | The return type of diagram to return |
-> ByteString | The PlantUML diagram specification which should be loaded |
-> IO ByteString |
This function may be used to draw a PlantUML diagram given a valid specification and a return type. It calls PlantUML via Java.
drawPlantUMLDiagram :: DiagramType -> ByteString -> IO ByteString Source #
A synonym for drawPlantUmlDiagram
.