Skip to content
Haskell simulations of spacecraft manoeuvres
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/tex-plots
gh-pages
notes
src
test
.ghci
.gitignore
.travis.yml
ChangeLog.md
LICENSE
README.md
Setup.hs
cabal.project
cabal.project.freeze
logo.svg
package.yaml
run-ghcid.sh
space-workshop.cabal
stack.yaml

README.md

Logo

Haskell Spaceflight Workshop

Build Status

The workshop contents are now complete. Final modifications and updates may still be made prior to LambdaJam 2019, but the current version is representative.

The current notes for the workshop are available from GitHub pages, built using Travis CI.

Instructions for Participants

Please make sure that you download the required dependencies for the workshop and the notes in advance. We support the stack and cabal build tools. Dependencies can be fetched by doing:

$ stack --install-ghc test --only-dependencies

or

$ cabal new-build --only-dependencies test:tests

in the checked-out repository.

Docker Option

If you are unable to obtain the required dependencies prior to the workshop, we will be distributing (on temporary loan only) USB flash drives containing a Docker image with the dependencies pre-installed. If you use this option, please copy everything off the USB drive before passing it on. Please then follow the instructions in the README from the flash drive.

For reference, the Docker image itself was built using the CI pipeline here, but the USB Flash drive also contains a snapshot of this GitHub repository and the notes.

Solutions

Solutions are provided in the Solutions sub-modules. To use them, either call them directly from the problem code, OR set the environment variable IDDQD=1, which will cause the todo function to use the fallback solutions:

$ export IDDQD=1  # causes the `todo` function to use the provided solutions

Developer Notes

See the .travis.yml file for detailed CI build instructions.

A manual build can be performed as follows:

$ export IDDQD=1
$ stack test
$ stack exec tex-plots   # generates PGF-format plots for the LaTeX notes
$ cd notes
$ make                   # generates the LaTeX notes.pdf

Or with cabal:

$ export IDDQD=1
$ cabal new-test
$ cabal new-run tex-plots   # generates PGF-format plots for the LaTeX notes
$ cd notes
$ make                   # generates the LaTeX notes.pdf

Be careful: the LaTeX file has \nonstopmode set so that it doesn't hang the CI build. It may be best to remove this when making local changes so that errors are more obvious.

The Makefile for the notes supports a watch phony target to continuously watch the source files and re-run LaTeX as required:

$ make watch
You can’t perform that action at this time.