How To Install libghc-basic-prelude-dev on Debian 9
Introduction
In this tutorial we learn how to install libghc-basic-prelude-dev
on Debian 9.
What is libghc-basic-prelude-dev
libghc-basic-prelude-dev is:
The premise of basic-prelude is that there are a lot of very commonly desired features missing from the standard Prelude, such as commonly used operators (<$> and >=>, for instance) and imports for common datatypes (e.g., ByteString and Vector). At the same time, there are lots of other components which are more debatable, such as providing polymorphic versions of common functions.
So basic-prelude is intended to give a common foundation for a number of alternate preludes. The package provides two modules: CorePrelude provides the common ground for other preludes to build on top of, while BasicPrelude exports CorePrelude together with commonly used list functions to provide a drop-in replacement for the standard Prelude.
Users wishing to have an improved Prelude can use BasicPrelude. Developers wishing to create a new prelude should use CorePrelude.
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-basic-prelude-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-basic-prelude-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-basic-prelude-dev
using apt-get
by running the following command:
sudo apt-get -y install libghc-basic-prelude-dev
Install libghc-basic-prelude-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-basic-prelude-dev
using apt
by running the following command:
sudo apt -y install libghc-basic-prelude-dev
Install libghc-basic-prelude-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-basic-prelude-dev
using aptitude
by running the following command:
sudo aptitude -y install libghc-basic-prelude-dev
How To Uninstall libghc-basic-prelude-dev on Debian 9
To uninstall only the libghc-basic-prelude-dev
package we can use the following command:
sudo apt-get remove libghc-basic-prelude-dev
Uninstall libghc-basic-prelude-dev And Its Dependencies
To uninstall libghc-basic-prelude-dev
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libghc-basic-prelude-dev
Remove libghc-basic-prelude-dev Configurations and Data
To remove libghc-basic-prelude-dev
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libghc-basic-prelude-dev
Remove libghc-basic-prelude-dev configuration, data, and all of its dependencies
We can use the following command to remove libghc-basic-prelude-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-basic-prelude-dev
Dependencies
libghc-basic-prelude-dev have the following dependencies:
- libghc-readargs-dev-1.2.2-9cd3f
- libghc-base-dev-4.9.0.0-5e731
- libghc-bytestring-dev-0.10.8.1-58b19
- libghc-containers-dev-0.5.7.1-8be09
- libghc-filepath-dev-1.4.1.0-6e799
- libghc-hashable-dev-1.2.4.0-caa41
- libghc-lifted-base-dev-0.2.3.8-8f28a
- libghc-safe-dev-0.3.9-6d9f9
- libghc-text-dev-1.2.2.1-80edf
- libghc-transformers-dev-0.5.2.0-3446d
- libghc-unordered-containers-dev-0.2.7.1-6be11
- libghc-vector-dev-0.11.0.0-b15f0
- libc6
- libgmp10
References
Summary
In this tutorial we learn how to install libghc-basic-prelude-dev
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.