A visual Haskell
Go to file
2016-11-05 15:48:18 -07:00
app Progress on collapseNodes. Found bug in nodesParent. 2016-11-05 15:48:18 -07:00
examples Fix type in tutorial/getting started guide. 2016-11-01 18:31:28 -07:00
images Update to latest Stackage LTS. Upgrade diagrams-graphviz. Add images folder. 2016-08-26 20:09:09 -07:00
src Initial commit 2016-01-04 17:18:42 -08:00
test Add test framework for collapseNodes using collapseTestStrings. 2016-11-03 15:30:04 -07:00
.gitignore Fix tests. Add test_translate. Add an empty test-output directory so tests can be run with zero setup. 2016-05-10 22:33:07 -07:00
glance.cabal Initial work for collapseNodes using graphs. 2016-11-02 14:49:29 -07:00
graph_algs.txt Initial work for collapseNodes using graphs. 2016-11-02 14:49:29 -07:00
LICENSE Initial commit 2016-01-04 17:18:42 -08:00
notes.txt Convert SyntaxGraph to an FGL graph, and render it. 2016-07-02 14:43:18 -07:00
README.md Add link to wiki in README 2016-08-13 16:19:49 -07:00
Setup.hs Initial commit 2016-01-04 17:18:42 -08:00
stack.yaml Increase stackage lts and diagrams-graphviz versions. 2016-11-01 17:52:20 -07:00
todo.txt Move todos out of app/Main.hs and into todo.txt. 2016-11-01 17:58:37 -07:00

Glance

Glance is a visual syntax for the programming language Haskell. The goal of this project is to increase programmer happiness and productivity by allowing programmers to understand programs in new and different ways. Currently, the Glance executable will produce a visual representation of your code in the form of an SVG image when given a textuall Haskell source file. In the future, I hope to incorporate Glance into Haskell code editors, and to eventually create a visual editor for Haskell.

To build and run:

stack build
stack exec glance-exe -- -o images/fact.svg -w 500 examples/fact.hs -
firefox images/fact.svg

The Glance wiki has a brief introduction to the code architecture.

Below is a getting started guide for Glance rendered by Glance itself (source here). To generate this image run

stack exec glance-exe -- -o examples/tutorial.svg -w 873 examples/tutorial.hs c

Glance is still in development, so for the time being, layout, routing, and icon design all have much room for improvement. Introduction to Glance