How To Install libghc-free-dev on Debian 9
Introduction
In this tutorial we learn how to install libghc-free-dev
on Debian 9.
What is libghc-free-dev
libghc-free-dev is:
Free monads are useful for many tree-like structures and domain specific languages.
A Monad n is a free Monad for f if every Monad homomorphism from n to another monad m is equivalent to a natural transformation from f to m.
Cofree comonads provide convenient ways to talk about branching streams and rose-trees, and can be used to annotate syntax trees.
A Comonad v is a cofree Comonad for f if every Comonad homomorphism another comonad w to v is equivalent to a natural transformation from w to f.
This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.
There are three methods to install libghc-free-dev
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libghc-free-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libghc-free-dev
using apt-get
by running the following command:
sudo apt-get -y install libghc-free-dev
Install libghc-free-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-free-dev
using apt
by running the following command:
sudo apt -y install libghc-free-dev
Install libghc-free-dev Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libghc-free-dev
using aptitude
by running the following command:
sudo aptitude -y install libghc-free-dev
How To Uninstall libghc-free-dev on Debian 9
To uninstall only the libghc-free-dev
package we can use the following command:
sudo apt-get remove libghc-free-dev
Uninstall libghc-free-dev And Its Dependencies
To uninstall libghc-free-dev
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libghc-free-dev
Remove libghc-free-dev Configurations and Data
To remove libghc-free-dev
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libghc-free-dev
Remove libghc-free-dev configuration, data, and all of its dependencies
We can use the following command to remove libghc-free-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-free-dev
Dependencies
libghc-free-dev have the following dependencies:
- libghc-base-dev-4.9.0.0-5e731
- libghc-bifunctors-dev-5.4.1-c6bf4
- libghc-comonad-dev-5-e9f97
- libghc-containers-dev-0.5.7.1-8be09
- libghc-distributive-dev-0.5.0.2-cdd9f
- libghc-exceptions-dev-0.8.3-5d23e
- libghc-mtl-dev-2.2.1-3d1c9
- libghc-prelude-extras-dev-0.4.0.3-22725
- libghc-profunctors-dev-5.2-5ffd4
- libghc-semigroupoids-dev-5.1-7149d
- libghc-semigroups-dev-0.18.2-611c6
- libghc-template-haskell-dev-2.11.0.0-b9e58
- libghc-transformers-dev-0.5.2.0-3446d
- libghc-transformers-compat-dev-0.5.1.4-518aa
- libc6
- libgmp10
References
Summary
In this tutorial we learn how to install libghc-free-dev
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.