glance/notes.txt

32 lines
802 B
Plaintext
Raw Normal View History

2016-01-05 04:18:42 +03:00
to run:
Using Atom, in a terminal run
2016-01-06 03:22:29 +03:00
cd app
stack exec glance-exe -- -l -s Main.hs -o ../output.svg
2016-01-05 04:18:42 +03:00
or if that does not work
2016-01-06 03:22:29 +03:00
stack build --exec "glance-exe -o output.svg -w 500"
2016-01-05 04:18:42 +03:00
View circle.svg with svg-preview plug-in.
To use ghci for the main executable:
stack ghci glance
To use ghci with the test modules:
stack ghci glance:test:glance-test
For all warnings (some warnings duplicated):
stack clean
stack build --test --no-run-tests --ghc-options -Wall
To open documentation for other libraries:
stack haddock --open <package-name>
2020-05-17 02:21:38 +03:00
To build and run in a loop
watch -n2 stack build --exec \"glance-exe examples/fact.hs examples/fact.svg 500\"
GUI:
To build the GUI, first install the system dependencies (follow the directions
here: https://github.com/haskell-gi/haskell-gi#installation)