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
|
|
|
|
|
2016-05-12 09:08:18 +03:00
|
|
|
To use ghci with the test file:
|
|
|
|
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>
|