Generates graphviz-code that can be piped to dot.
$ hs2dot TestCode.hs | dot -T pdf -o TestCode.pdf
Generate graphviz dot-code by analyzing Haskell source code
License: Do What The F*ck You Want To Public License
At the moment every file is analyzed separately. Instead all Decl's should be merged (but with module-name preserved) and analyzed together.
All declarations for a module should be in a common box whose label should be the module name.
Should handle declarations in different modules that got the same name.
E.g. in module X.
data Foo = Foo
in module Y
data Foo = Foo
and module Z
import Y
import X as X
data Bar = Bar Foo | Barz X.Foo
The dot-code should not point to data types outside the scope.
This code sounds amazing. I'd like to use it in a project that uses Stack; I don't know whether that means I should install using Stack or using Cabal. I don't know how to install it into Stack. I tried cabal install hs2dot
and Cabal couldn't resolve its dependencies:
jeff@jbb-lenovo:~/code/hask-libs/importify$ cabal install hs2dot
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: hs2dot-0.1.4 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of hs2dot-0.1.4)
trying: haskell-src-1.0.2.0/installed-a35... (dependency of hs2dot-0.1.4)
next goal: haskell98 (dependency of hs2dot-0.1.4)
rejecting: haskell98-2.0.0.3 (conflict: base==4.8.2.0/installed-0d6...,
haskell98 => base>=4.7 && <4.8)
rejecting: haskell98-2.0.0.2 (conflict: base==4.8.2.0/installed-0d6...,
haskell98 => base==4.6.*)
rejecting: haskell98-2.0.0.1 (conflict: haskell-src =>
array==0.5.1.0/installed-960..., haskell98 => array>=0.3 && <0.5)
rejecting: haskell98-2.0.0.0 (conflict: haskell-src =>
array==0.5.1.0/installed-960..., haskell98 => array>=0.3 && <0.4)
rejecting: haskell98-1.1.0.1, 1.1.0.0, 1.0.1.1 (conflict:
base==4.8.2.0/installed-0d6..., haskell98 => base>=3 && <4.6)
rejecting: haskell98-1.0.1.0 (conflict: base==4.8.2.0/installed-0d6...,
haskell98 => base<4.6)
rejecting: haskell98-1.0 (conflict: base==4.8.2.0/installed-0d6..., haskell98
=> base<4.3)
Dependency tree exhaustively searched.
jeff@jbb-lenovo:~/code/hask-libs/importify$
My OS is Ubuntu 16.04.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.