@hackage dataflow0.6.0.0

Generate Graphviz documents from a Haskell representation.

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
  • Installation

  • Dependencies (0)

  • Dependents (0)