A small tool to render ohua compiled graphs using graphviz.
Invoke ohua-show --help
see all options and commands. Help for subcommands can
be found by runnning ohua-show <subcommand> --help
. Be advised that options
and arguments listed for ohua-show
itself work on all subcommands. Arguments
listed tehre should be prepended to the arguments for the subcommands.
The preview
subcommand may exit withoput doing anything, I don't know why,
perhaps it can't find some program it needs for that. In that case I'd recommend
simply rendering to PDF using ohua-show print -f Pdf <input-graph.ohuao>
.
To run print
with a custom format (as supplied by -f
) the graphviz
executable must be installed on the system. If no format is supplied the output
will be a dot
file. This works even if graphviz
is not installed.
Prebuilt binaries are available for 64bit Linux and OSX. Provided for each release by Travis CI.
Simply download the appropriate executable for you platform (ohua-show-linux
or
ohua-show-osx
) from the releases page.
Required tools:
stack
https://haskellstack.org
-
Clone the repository
git clone https://github.com/ohua-dev/ohuac
-
Build the program
stack install
This downloads and builds all dependencies, as well as the Haskell compiler
ghc
, should it not be present already. It should not interfere with any system-level libraries, Haskell ecosystems etc.It builds the executable
ohua-show
and copies it to~/.local/bin
. If you do not wish this usestack build
instead and find the path of the binary usingstack exec -- which ohua-show
afterwards