Skip to content

Instantly share code, notes, and snippets.

@kaoskorobase
Last active April 14, 2016 09:53
Show Gist options
  • Save kaoskorobase/b0398dc5891700841d36 to your computer and use it in GitHub Desktop.
Save kaoskorobase/b0398dc5891700841d36 to your computer and use it in GitHub Desktop.
Our goto shake build script these days
#!/bin/sh -e
SHAKE_ARGS="-j"
which stack 1>/dev/null \
|| (echo "Please install stack from http://haskellstack.org" ; exit 1)
stack build # --no-system-ghc --install-ghc
# Note: `stack exec` is problematic on Windows because stack includes a separate MinGW environment.
# Execute build script directly instead.
`stack path --local-install-root`/bin/EXECUTABLE_FROM_CABAL_FILE $SHAKE_ARGS "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment