Zylphrex / heroku-buildpack-stack

Easily run stack-based Haskell projects on Heroku.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

heroku-buildpack-stack

Easily run stack-based Haskell projects on Heroku.

heroku buildpacks:set https://github.com/nejstastnejsistene/heroku-buildpack-stack

You can read more about using custom buildpacks here.

How does it work?

This installs libgmp and stack, calls stack setup to install GHC as specified in stack.yaml, and then runs stack build. This will probably take a long time the first time a slug is compiled, but subsequent compilations will use cached data to speed up the process.

The default behavior without a Procfile is to run the first executable listed in the .cabal file. This should work most of the time, kind of like cabal run used to.

#!/bin/bash
$(grep ^executable *.cabal | head -n1 | awk '{print $2}')

TODO

  • Setup the PATH so it doesn't have to be explicitly defined (see bin/release)
  • Automatically stack upgrade

About

Easily run stack-based Haskell projects on Heroku.

License:MIT License


Languages

Language:Shell 100.0%