dataflow: Generate Graphviz documents from a Haskell representation.

[ bsd3, code-generation, compiler, graphs, library, program ] [ Propose Tags ]

Outputs .dot files that can be processed by the dot command. Currently it only supports the DFD output format (http:/en.wikipedia.orgwiki/Data_flow_diagram). Support for a Graphviz-like input format (instead of using the data structures in Haskell) is planned.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.5.0.0, 0.5.1.0, 0.5.2.0, 0.5.3.0, 0.5.4.0, 0.6.0.0, 0.6.1.0, 0.7.1.0, 0.7.3.0
Dependencies base (>=4 && <4.8), containers (>=0.4), dataflow, mtl (>=2.2), parsec [details]
License MIT
Copyright oskar.wickstrom@gmail.com
Author Oskar Wickström
Maintainer oskar.wickstrom@gmail.com
Category Code Generation, Compiler, Graphs
Home page https://github.com/owickstrom/dataflow
Source repo head: git clone git@github.com:owickstrom/dataflow.git
Uploaded by owickstrom at 2015-04-14T13:24:24Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables dataflow
Downloads 11595 total (51 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-04-14 [all 1 reports]

Readme for dataflow-0.6.0.0

[back to package description]

DataFlow

Generate Graphviz documents from a Haskell representation.

Getting Started

cabal install dataflow@0.6.0.0

Usage

Legend

The objects supported by DataFlow is:

  • boundary
  • io
  • function
  • database
  • ->

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.

Example Output

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