2023-10-13 10:14:00 +03:00
|
|
|
======================
|
|
|
|
BUILD AND INSTALLATION
|
|
|
|
======================
|
|
|
|
|
|
|
|
This document describes how to build, install, and test the GHCiTUI program.
|
|
|
|
|
2023-10-16 04:31:13 +03:00
|
|
|
GHCiTUI is configured, built, and installed through `Cabal`_. Cabal can be
|
|
|
|
installed through the ``ghcup`` command line tool. Familiarity with Cabal
|
|
|
|
is not necessary to build GHCiTUI.
|
2023-10-13 10:14:00 +03:00
|
|
|
|
|
|
|
------------------
|
|
|
|
Getting the source
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Currently the source code is hosted on https://github.com. You can check out
|
|
|
|
the source code using ``git`` with SSH:
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
# SSH (for contributors, requires SSH set up)
|
|
|
|
git clone git@github.com:CrystalSplitter/ghcitui.git
|
|
|
|
|
|
|
|
Or HTTPS:
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
# HTTPS
|
|
|
|
git clone https://github.com/CrystalSplitter/ghcitui.git
|
|
|
|
|
|
|
|
--------
|
|
|
|
Building
|
|
|
|
--------
|
|
|
|
|
2023-10-16 04:31:13 +03:00
|
|
|
The GHCiTUI cabal configurations defaults to release builds in the
|
|
|
|
`cabal.project`_. Therefore, we can just run...
|
2023-10-15 08:05:11 +03:00
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
cabal build
|
|
|
|
|
2023-10-16 04:31:13 +03:00
|
|
|
To build the release binary. Contributors may find it useful
|
|
|
|
to make their own ``cabal.project.local`` with ``cabal configure`` while
|
|
|
|
debugging.
|
|
|
|
|
2023-10-15 08:05:11 +03:00
|
|
|
-------
|
|
|
|
Testing
|
|
|
|
-------
|
|
|
|
|
|
|
|
Unit tests are run automatically during installation, but you can also run them
|
|
|
|
manually with:
|
|
|
|
|
2023-10-16 04:07:20 +03:00
|
|
|
.. code:: shell
|
2023-10-15 08:05:11 +03:00
|
|
|
|
|
|
|
cabal test
|
|
|
|
|
|
|
|
----------
|
|
|
|
Installing
|
|
|
|
----------
|
|
|
|
|
|
|
|
To install:
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
2023-10-16 04:31:13 +03:00
|
|
|
# Per-user install (Nix-Style)
|
2023-10-15 08:05:11 +03:00
|
|
|
cabal install
|
|
|
|
|
2023-10-16 04:31:13 +03:00
|
|
|
|
|
|
|
By default, this will place the ``ghcitui`` executable in
|
|
|
|
``$HOME/.cabal/bin``.
|
|
|
|
|
|
|
|
.. _Cabal: https://www.haskell.org/cabal/
|
|
|
|
.. _cabal.project: ./cabal.project
|