@hackage dataflow0.6.0.0
Generate Graphviz documents from a Haskell representation.
Categories
License
MIT
Maintainer
oskar.wickstrom@gmail.com
Links
Versions
Installation
Dependencies (4)
- base >=4 && <4.8
- containers >=0.4
- mtl >=2.2
- parsec Show all…
Dependents (1)
@hackage/acme-everything
DataFlow
Generate Graphviz documents from a Haskell representation.
Getting Started
cabal install dataflow@0.6.0.0
Usage
The objects supported by DataFlow is:
boundaryiofunctiondatabase->
These are composed in a diagram to get something printable.
Example
diagram 'Webapp' {
boundary 'Browser' {
function client 'Client'
}
boundary 'Amazon AWS' {
function server 'Web Server'
database logs 'Logs'
}
io analytics 'Google<br/>Analytics'
client -> server 'Request /' ''
server -> logs 'Log' 'User IP'
server -> client 'Response' 'User Profile'
client -> analytics 'Log' 'Page Navigation'
}
Then generate your output with dot.
dataflow dfd webapp.flow | dot -Tsvg > webapp.svg
That should generate something like the following.
Build
cabal sandbox init
cabal configure --enable-tests
cabal install --only-dependencies --enable-tests
Building the Examples
make -C examples
Haskell Docs
See the Hackage site.
Release
cabal clean && cabal build && cabal sdist && cabal upload dist/dataflow-*.tar.gz