handle package:graphviz

A version of catch with the arguments swapped around; useful in situations where the code for the handler is shorter. For example:
do handle (\NonTermination -> exitWith (ExitFailure 1)) $
...
Run the chosen Graphviz command on this graph, but send the result to the given handle rather than to a file. Note that the Handle -> IO a function must fully consume the input from the Handle; e.g. use strict ByteStrings rather than lazy ones. If the command was unsuccessful, then a GraphvizException is thrown.