How To Install libghc-ghc-exactprint-dev on Debian 12
Introduction
In this tutorial we learn how to install libghc-ghc-exactprint-dev
on Debian 12.
What is libghc-ghc-exactprint-dev
libghc-ghc-exactprint-dev is:
Using the API Annotations available from GHC 7.10.2, this library provides a means to round trip any code that can be compiled by GHC, currently excluding lhs files.
It does this with a phased approach:
- Delta - converts GHC API Annotations into relative offsets, indexed by SrcSpan
- Transform - functions to facilitate changes to the AST, adjusting the annotations generated in the Delta phase to suit the changes.
- Print - converts an AST and its annotations to properly formatted source text.
- Pretty - adds annotations to an AST (fragment) so that the output can be parsed back to the same AST.
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-ghc-exactprint-dev
on Debian 12. 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-ghc-exactprint-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-ghc-exactprint-dev
using apt-get
by running the following command:
sudo apt-get -y install libghc-ghc-exactprint-dev
Install libghc-ghc-exactprint-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-ghc-exactprint-dev
using apt
by running the following command:
sudo apt -y install libghc-ghc-exactprint-dev
Install libghc-ghc-exactprint-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-ghc-exactprint-dev
using aptitude
by running the following command:
sudo aptitude -y install libghc-ghc-exactprint-dev
How To Uninstall libghc-ghc-exactprint-dev on Debian 12
To uninstall only the libghc-ghc-exactprint-dev
package we can use the following command:
sudo apt-get remove libghc-ghc-exactprint-dev
Uninstall libghc-ghc-exactprint-dev And Its Dependencies
To uninstall libghc-ghc-exactprint-dev
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libghc-ghc-exactprint-dev
Remove libghc-ghc-exactprint-dev Configurations and Data
To remove libghc-ghc-exactprint-dev
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libghc-ghc-exactprint-dev
Remove libghc-ghc-exactprint-dev configuration, data, and all of its dependencies
We can use the following command to remove libghc-ghc-exactprint-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-ghc-exactprint-dev
Dependencies
libghc-ghc-exactprint-dev have the following dependencies:
- libghc-base-dev-4.15.1.0-6a406
- libghc-bytestring-dev-0.10.12.1-ced9a
- libghc-containers-dev-0.6.4.1-31c3b
- libghc-directory-dev-1.3.6.2-311c9
- libghc-filepath-dev-1.4.2.1-4459f
- libghc-free-dev-5.1.9-f50fc
- libghc-ghc-boot-dev-9.0.2-ef461
- libghc-ghc-dev-9.0.2-740f7
- libghc-ghc-paths-dev-0.1.0.12-5c013
- libghc-mtl-dev-2.2.2-e3bae
- libghc-syb-dev-0.7.2.2-ec1fd
- libc6
- libgmp10
References
Summary
In this tutorial we learn how to install libghc-ghc-exactprint-dev
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.