mirror of
https://github.com/CrystalSplitter/ghcitui.git
synced 2024-10-26 10:58:12 +03:00
55dfa29ba0
This updates some of the docs for Hackage viewing.
76 lines
2.1 KiB
ReStructuredText
76 lines
2.1 KiB
ReStructuredText
======================
|
|
BUILD AND INSTALLATION
|
|
======================
|
|
|
|
This document describes how to build, install, and test the GHCiTUI program.
|
|
|
|
At present, installation has only been tested on Linux systems. While
|
|
installation may work on other operating systems, you may encounter issues.
|
|
|
|
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.
|
|
|
|
-------------------------------------
|
|
Installing Latest Stable From Hackage
|
|
-------------------------------------
|
|
|
|
The simplest way to install GHCiTUI is by downloading the package from Hackage:
|
|
|
|
.. code-block:: shell
|
|
|
|
cabal update && cabal install ghcitui
|
|
# And to check it was successfully installed...
|
|
ghcitui --version
|
|
# ghcitui <VERSION>
|
|
|
|
------------------
|
|
Getting the source
|
|
------------------
|
|
|
|
Currently the source code is hosted at
|
|
https://github.com/CrystalSplitter/ghcitui. You can check out the source code
|
|
using ``git``.
|
|
|
|
Note however that the repository is configured with ``git lfs``
|
|
to store documentation images, so if you want images in your checkout, you
|
|
must `install git-lfs separately`_.
|
|
|
|
Checking out with SSH:
|
|
|
|
.. code-block:: shell
|
|
|
|
# SSH (for contributors, requires SSH set up)
|
|
git clone git@github.com:CrystalSplitter/ghcitui.git
|
|
|
|
Or HTTPS:
|
|
|
|
.. code-block:: shell
|
|
|
|
# HTTPS
|
|
git clone https://github.com/CrystalSplitter/ghcitui.git
|
|
|
|
--------
|
|
Building
|
|
--------
|
|
|
|
The GHCiTUI cabal configurations defaults to release builds in the
|
|
`cabal.project`_. Therefore, we can just run...
|
|
|
|
.. code-block:: shell
|
|
|
|
cd ghcitui
|
|
cabal build all # Build library and executable (release mode)
|
|
cabal test all # Run tests (optional)
|
|
cabal install exe:ghcitui # Per-user install (Nix-Style)
|
|
|
|
By default, this will place the ``ghcitui`` executable in
|
|
``$HOME/.cabal/bin``.
|
|
|
|
Contributors may find it useful to make their own
|
|
``cabal.project.local`` with ``cabal configure`` while debugging.
|
|
|
|
.. _Cabal: https://www.haskell.org/cabal/
|
|
.. _cabal.project: ./cabal.project
|
|
.. _install git-lf separately: https://git-lfs.com/
|