To build Trombone you need
- the Cabal tool – a build system for Haskell programs, and
- a recent version of GHC (The Glasgow Haskell Compiler).
Both of these come bundled with the Haskell Platform, which is available for all major operating systems. This is the recommended installation strategy, unless you have more specific requirements.
Getting the Haskell Platform¶
Consult the search utility provided by your distribution’s package manager to locate a suitable candidate, or follow the instructions on https://www.haskell.org/platform/ relevant to your operating system.
Once you have GHC and Cabal installed, run the command
$ cabal update
to download the most recent list of packages. Next, clone the repository,
$ git clone https://github.com/johanneshilden/trombone.git
and run the below sequence of commands. (The use of a sandbox here is optional, but recommended to avoid dependency problems.)
$ cd trombone $ cabal sandbox init $ cabal install --only-dependencies $ cabal build