Skip to content

nejstastnejsistene/heroku-buildpack-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages