Both Haskell and Gtk3 for Haskell are available for most Linux systems.
Haskell itself is installed with this command:
sudo apt-get install haskell-platform
To install Gtk-3 support for Haskell, do:
sudo apt-get install libghc-gtk3-dev
Packages with programming manuals for both Gtk-3 and Cairo are available on most Linux distributions. They are installed with the commands
sudo apt-get install libghc-gtk3-doc sudo apt-get install libghc-cairo-doc
This command installs the following 6 packages:
| Package | Location (in a Debian-like operation system) |
| libghc-cairo-doc | file:///usr/share/doc/libghc-cairo-doc/html/index.html |
| libghc-gio-doc | file:///usr/share/doc/libghc-gio-doc/html/index.html |
| libghc-glib-doc | file:///usr/share/doc/libghc-glib-doc/html/index.html |
| libghc-gtk3-doc | file:///usr/share/doc/libghc-gtk3-doc/html/index.html |
| libghc-mtl-doc | file:///usr/share/doc/libghc-mtl-doc/html/index.html |
| libghc-pango-doc | file:///usr/share/doc/libghc-pango-doc/html/index.html |
The links given in this table will work as soon as you have installed the above-mentioned packages.
Preparing the documentation for use with Doc-Central
Regrettably the documents from package libghc-gtk3-doc are not immediately readable with the Doc-Central document reader. To make them readable, you have to provide some missing files.
Doc-Central is an Apache-based utility to read documentation in the web browser.
....
sudo apt-get install doc-central
sudo /etc/init.d/apache2 restart cd /etc/apache2/conf-available/ sudo leafpad doc-central.conf
Alias /usr/share /usr/share Alias /doc /usr/share/doc
sudo a2enconf doc-central sudo a2enmod cgi systemctl reload apache2 systemctl restart apache2
To read the Haskell documentation, you some missing files.
#! /bin/bash cp libghc-cairo-doc /usr/share/doc-base cp libghc-gtk3-doc /usr/share/doc-base cd /usr/share/doc-base/ install-docs -i libghc-cairo-doc install-docs -i libghc-gtk3-doc