Code Monkey home page Code Monkey logo

hs2graphviz's Introduction

README

Generates graphviz-code that can be piped to dot.

Example usage

$ hs2dot TestCode.hs | dot -T pdf -o TestCode.pdf

hs2graphviz's People

Contributors

finnsson avatar sighingnow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hs2graphviz's Issues

Should handle declarations with same 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

How to install?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.