Skip to content
halcyon

Haskell app installs

Halcyon

A system for installing Haskell apps and development tools, including GHC and Cabal. One command restores an archived build or makes a fresh one.

In production
Since June 2014
Frameworks measured
Twelve
Worked examples
Eight apps
License
MIT X11

Why Halcyon

Installs that repeat cleanly

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.

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.

Fast

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.

Reliable

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.

Usage

One command, one app

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

Support

Ask, then build

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

Who makes Halcyon

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.

Acknowledgments

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.

Ready to install your first app?

The tutorial takes you from an empty machine to a running Haskell web app, then shows how caching speeds up every later build.