How To Install libghc-exceptions-prof on Ubuntu 18.04

In this tutorial we learn how to install libghc-exceptions-prof on Ubuntu 18.04. libghc-exceptions-prof is extensible optionally-pure exceptions; profiling libraries

Introduction

In this tutorial we learn how to install libghc-exceptions-prof on Ubuntu 18.04.

What is libghc-exceptions-prof

libghc-exceptions-prof is:

This library supports monads that can throw extensible exceptions. The exceptions are the very same from Control.Exception, and the operations offered very similar, but here they are not limited to IO.

This code is in the style of both transformers and mtl, and is compatible with them, though doesn’t mimic the module structure or offer the complete range of features in those packages.

This is very similar to ErrorT and MonadError, but based on features of Control.Exception. In particular, it handles the complex case of asynchronous exceptions by including mask in the typeclass. Note that the extensible extensions feature relies the RankNTypes language extension.

This package provides a library for the Haskell programming language, compiled for profiling. See http://www.haskell.org/ for more information on Haskell.

There are three methods to install libghc-exceptions-prof on Ubuntu 18.04. 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-exceptions-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-exceptions-prof using apt-get by running the following command:

sudo apt-get -y install libghc-exceptions-prof

Install libghc-exceptions-prof Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libghc-exceptions-prof using apt by running the following command:

sudo apt -y install libghc-exceptions-prof

Install libghc-exceptions-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libghc-exceptions-prof using aptitude by running the following command:

sudo aptitude -y install libghc-exceptions-prof

How To Uninstall libghc-exceptions-prof on Ubuntu 18.04

To uninstall only the libghc-exceptions-prof package we can use the following command:

sudo apt-get remove libghc-exceptions-prof

Uninstall libghc-exceptions-prof And Its Dependencies

To uninstall libghc-exceptions-prof and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libghc-exceptions-prof

Remove libghc-exceptions-prof Configurations and Data

To remove libghc-exceptions-prof configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libghc-exceptions-prof

Remove libghc-exceptions-prof configuration, data, and all of its dependencies

We can use the following command to remove libghc-exceptions-prof configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libghc-exceptions-prof

References

Summary

In this tutorial we learn how to install libghc-exceptions-prof package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.