How To Install libghc-language-haskell-extract-prof on Debian 11
Introduction
In this tutorial we learn how to install libghc-language-haskell-extract-prof
on Debian 11.
What is libghc-language-haskell-extract-prof
libghc-language-haskell-extract-prof is:
language-haskell-extract contains some useful helper functions on top of Template Haskell. functionExtractor extracts all functions after a regexp-pattern.
foo = “test” boo = “testing” bar = $(functionExtractor “oo$”)
will automagically extract the functions ending with “oo” such as
bar = [(“foo”,foo), (“boo”,boo)]
This can be useful if you wish to extract all functions beginning with test (for a test-framework) or all functions beginning with wc (for a web service).
functionExtractorMap works like functionsExtractor but applies a function over all function-pairs. This functions is useful if the common return type of the functions is a type class.
This package contains the libraries compiled with profiling enabled.
There are three methods to install libghc-language-haskell-extract-prof
on Debian 11. 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-language-haskell-extract-prof 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-language-haskell-extract-prof
using apt-get
by running the following command:
sudo apt-get -y install libghc-language-haskell-extract-prof
Install libghc-language-haskell-extract-prof Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-language-haskell-extract-prof
using apt
by running the following command:
sudo apt -y install libghc-language-haskell-extract-prof
Install libghc-language-haskell-extract-prof 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-language-haskell-extract-prof
using aptitude
by running the following command:
sudo aptitude -y install libghc-language-haskell-extract-prof
How To Uninstall libghc-language-haskell-extract-prof on Debian 11
To uninstall only the libghc-language-haskell-extract-prof
package we can use the following command:
sudo apt-get remove libghc-language-haskell-extract-prof
Uninstall libghc-language-haskell-extract-prof And Its Dependencies
To uninstall libghc-language-haskell-extract-prof
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove libghc-language-haskell-extract-prof
Remove libghc-language-haskell-extract-prof Configurations and Data
To remove libghc-language-haskell-extract-prof
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge libghc-language-haskell-extract-prof
Remove libghc-language-haskell-extract-prof configuration, data, and all of its dependencies
We can use the following command to remove libghc-language-haskell-extract-prof
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-language-haskell-extract-prof
Dependencies
libghc-language-haskell-extract-prof have the following dependencies:
- libghc-language-haskell-extract-dev
- libghc-base-prof-4.13.0.0-2f220
- libghc-regex-posix-prof-0.96.0.0-f6ee8
- libghc-template-haskell-prof-2.15.0.0-80f0d
References
- libghc-language-haskell-extract-prof website
- libghc-language-haskell-extract-prof on packages.debian.org
Summary
In this tutorial we learn how to install libghc-language-haskell-extract-prof
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.