Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Examples of conversion from dot ByteStrings
Most examples from https://renenyffenegger.ch/notes/tools/Graphviz/examples/index
Synopsis
- ex0 :: ByteString
- ex1 :: ByteString
- ex2 :: ByteString
- ex3 :: ByteString
- ex4 :: ByteString
- ex5 :: ByteString
- ex6 :: ByteString
- ex7 :: ByteString
- ex8 :: ByteString
- ex9 :: ByteString
- ex10 :: ByteString
- ex11 :: ByteString
- ex12 :: ByteString
- ex13 :: ByteString
- ex14 :: ByteString
- ex15 :: ByteString
- testAll :: IO ()
- svgAll :: IO ()
- exAGraph :: Graph Int
Documentation
>>>
import DotParse
>>>
import Data.Proxy
>>>
:set -XOverloadedStrings
>>>
import Data.String.Interpolate
>>>
import qualified Data.ByteString.Char8 as Char8
>>>
import Optics.Core
>>>
import Chart
examples
ex0 :: ByteString Source #
minimal definition
>>>
runDotParser ex0 :: Graph
Graph {strict = Last {getLast = Just NoMergeEdges}, directed = Last {getLast = Just UnDirected}, graphid = Last {getLast = Nothing}, nodeAttributes = fromList [], graphAttributes = fromList [], edgeAttributes = fromList [], globalAttributes = fromList [], nodes = [], edges = [], subgraphs = []}
>>>
testDotParser (Proxy :: Proxy Graph) defaultDotConfig ex0
ex1 :: ByteString Source #
ex2 :: ByteString Source #
ex3 :: ByteString Source #
ex4 :: ByteString Source #
ex5 :: ByteString Source #
ex6 :: ByteString Source #
ex7 :: ByteString Source #
ex8 :: ByteString Source #
ex9 :: ByteString Source #
ex10 :: ByteString Source #
ex11 :: ByteString Source #
ex12 :: ByteString Source #
ex13 :: ByteString Source #
ex14 :: ByteString Source #
ex15 :: ByteString Source #