Skip to content

Instantly share code, notes, and snippets.

@thsutton
Created December 31, 2010 12:25
Show Gist options
  • Save thsutton/760972 to your computer and use it in GitHub Desktop.
Save thsutton/760972 to your computer and use it in GitHub Desktop.
project="$0"
if [ -z "$project" ]; then
project="project"
fi
mkdir "$project"
cd "$project"
# Create the new cabal-dev sandbox and install snap
cabal-dev install snap
# Create the new snap project
./cabal-dev/bin/snap init
# Make sure the sandbox includes all dependencies
cabal-dev install-deps
# Configure and build the new project
cabal-dev configure && \
cabal-dev build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment