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.
|
2016-05-12 09:08:18 +03:00
|
|
|
|
2016-07-03 00:43:18 +03:00
|
|
|
To use ghci for the main executable:
|
|
|
|
stack ghci glance
|
|
|
|
|
2018-11-02 11:52:26 +03:00
|
|
|
To use ghci with the test modules:
|
2016-05-12 09:08:18 +03:00
|
|
|
stack ghci glance:test:glance-test
|
|
|
|
|
|
|
|
For all warnings (some warnings duplicated):
|
|
|
|
stack clean
|
|
|
|
stack build --test --no-run-tests --ghc-options -Wall
|
2016-06-18 23:17:09 +03:00
|
|
|
|
|
|
|
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\"
|
2020-06-11 10:17:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
GUI:
|
|
|
|
To build the GUI, first install the system dependencies (follow the directions
|
|
|
|
here: https://github.com/haskell-gi/haskell-gi#installation)
|