Simple
Halcyon uses regular Cabal packages, sandboxes, and repositories.
It does not need GHC to be present, because it can install the right version of GHC for the app.
Haskell app installs
A system for installing Haskell apps and development tools, including GHC and Cabal. One command restores an archived build or makes a fresh one.
Why Halcyon
Halcyon drives regular Cabal machinery, then keeps every product it makes. The result is a tool that behaves the same on a laptop and on a build server.
Halcyon uses regular Cabal packages, sandboxes, and repositories.
It does not need GHC to be present, because it can install the right version of GHC for the app.
Halcyon archives and caches all build products, and can upload archives to external storage.
It restores archived products automatically, saving time during development, continuous integration, and deployment. See the cache options.
Halcyon has been in production since June 2014.
It carries solutions for many cabal install bugs, so a first build is more likely to succeed.
Declare sandbox sources, build tools, and native OS packages as dependencies, then install them with the app.
Halcyon can also be the base for larger deployment systems.
Usage
Point Halcyon at a Git URL, a directory, or a label. It works out the version of GHC it needs, restores anything already cached, builds what is missing, then installs the result under a prefix you choose.
$ halcyon install https://github.com/mietek/halcyon-tutorial
-----> Cloning https://github.com/mietek/halcyon-tutorial... done, f1ccdd9
-----> Installing halcyon-tutorial-1.0
Prefix: /app
Source hash: b90bb47
GHC version: 7.8.4
-----> Restoring install directory
Extracting halcyon-install-b90bb47-halcyon-tutorial-1.0.tar.gz... done, 8.8MB
-----> Installing app to /app
-----> Installed halcyon-tutorial-1.0
Documentation
Start with the tutorial, keep the reference beside you, and use the examples and shootout to judge whether Halcyon fits your stack.
Build, run, and improve a small Haskell web app, then move it to private storage.
Every command and every environment variable, grouped by what it changes.
Eight real apps, from CircuitHub to Gitit, with the extra dependencies each one needs.
Build times and sizes for twelve Haskell web frameworks, measured on one machine.
Support
The #haskell-deployment IRC channel on freenode is a good place to ask questions and find answers.
Please report any problems with Halcyon on the issue tracker. There is a separate issue tracker for problems with the documentation.
Need commercial support? Contact the author directly.
“If Halcyon is not helping you install apps easily, there is a bug in Halcyon.” Miëtek Bak, with apologies to Jordan Sissel
“Miëtek’s Haskell on Heroku and Halcyon has made deploying How I Start fast and simple! Thanks!” Tristan Sloughter, author of How I Start
About
My name is Miëtek Bak. I make software, and Halcyon is one of my projects.
This work is published under the MIT X11 license, and supported by my company, Least Fixed.
Like my work? I am available for consulting. Say hello, or follow @mietek.
Thanks to Joe Nelson, Brian McKenna, and Neuman Vong for initial work on Haskell deployment. Thanks to CircuitHub, Purely Agile, and Tweag I/O for advice and assistance.
The welcome image is based on Altocumulus Cloud, by Jeff Kubina. The original monospaced font is PragmataPro, by Fabrizio Schiavi; the original sans serif font is Concourse, by Matthew Butterick. This redesign uses the openly licensed IBM Plex Sans and IBM Plex Mono as the closest match, and is built with Bulma.
Thanks to Fastly for providing low latency access to Halcyon public storage. This project is not affiliated with DigitalOcean or Heroku.
The tutorial takes you from an empty machine to a running Haskell web app, then shows how caching speeds up every later build.