How To Install libghc-fclabels-dev on Debian 10
Introduction
In this tutorial we learn how to install libghc-fclabels-dev
on Debian 10.
What is libghc-fclabels-dev
libghc-fclabels-dev is:
This package provides first class labels that can act as bidirectional record fields. The labels can be derived automatically using Template Haskell which means you don’t have to write any boilerplate yourself. The labels are implemented as lenses and are fully composable. Labels can be used to /get/, /set/ and /modify/ parts of a datatype in a consistent way.
See “Data.Label” for an introductory explanation.
Internally lenses are not tied to Haskell functions directly, but are implemented as arrows. Arrows allow the lenses to be run in custom computational contexts. This approach allows us to make partial lenses that point to fields of multi-constructor datatypes in an elegant way.
See the “Data.Label.Maybe” module for the use of partial labels.
1.1.1.0 -> 1.1.2
- Added partial set/modify versions that act as identity when the constructor field is not available.
Author: Sebastiaan Visser, Erik Hesselink, Chris Eidhof, Sjoerd Visscher with lots of help and feedback from others. Upstream-Maintainer: Sebastiaan Visser [email protected]
This package contains the normal library files.
There are three methods to install libghc-fclabels-dev
on Debian 10. 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-fclabels-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-fclabels-dev
using apt-get
by running the following command:
sudo apt-get -y install libghc-fclabels-dev
Install libghc-fclabels-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-fclabels-dev
using apt
by running the following command:
sudo apt -y install libghc-fclabels-dev
Install libghc-fclabels-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-fclabels-dev
using aptitude
by running the following command:
sudo aptitude -y install libghc-fclabels-dev
How To Uninstall libghc-fclabels-dev on Debian 10
To uninstall only the libghc-fclabels-dev
package we can use the following command:
sudo apt-get remove libghc-fclabels-dev
Uninstall libghc-fclabels-dev And Its Dependencies
To uninstall libghc-fclabels-dev
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libghc-fclabels-dev
Remove libghc-fclabels-dev Configurations and Data
To remove libghc-fclabels-dev
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libghc-fclabels-dev
Remove libghc-fclabels-dev configuration, data, and all of its dependencies
We can use the following command to remove libghc-fclabels-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-fclabels-dev
Dependencies
libghc-fclabels-dev have the following dependencies:
- libghc-base-dev-4.11.1.0-5dd74
- libghc-mtl-dev-2.2.2-28a8b
- libghc-template-haskell-dev-2.13.0.0-87d93
- libghc-transformers-dev-0.5.5.0-b5d2f
- libatomic1
- libc6
- libgmp10
References
Summary
In this tutorial we learn how to install libghc-fclabels-dev
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.