How To Install libghc-convertible-dev on Debian 9

In this tutorial we learn how to install libghc-convertible-dev on Debian 9. libghc-convertible-dev is Typeclasses and instances for converting between types, GHC package

Introduction

In this tutorial we learn how to install libghc-convertible-dev on Debian 9.

What is libghc-convertible-dev

libghc-convertible-dev is:

convertible provides a typeclass with a single function that is designed to help convert between different types: numeric values, dates and times, and the like. The conversions perform bounds checking and return a pure Either value. This means that you need not remember which specific function performs the conversion you desire.

Also included in the package are optional instances that provide conversion for various numeric and time types, as well as utilities for writing your own instances.

Finally, there is a function that will raise an exception on bounds-checking violation, or return a bare value otherwise, implemented in terms of the safer function described above.

Convertible is also used by HDBC 2.0 for handling marshalling of data to/from databases.

Convertible is backed by an extensive test suite and passes tests on GHC and Hugs.

There are three methods to install libghc-convertible-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-convertible-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-convertible-dev using apt-get by running the following command:

sudo apt-get -y install libghc-convertible-dev

Install libghc-convertible-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-convertible-dev

Install libghc-convertible-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-convertible-dev using aptitude by running the following command:

sudo aptitude -y install libghc-convertible-dev

How To Uninstall libghc-convertible-dev on Debian 9

To uninstall only the libghc-convertible-dev package we can use the following command:

sudo apt-get remove libghc-convertible-dev

Uninstall libghc-convertible-dev And Its Dependencies

To uninstall libghc-convertible-dev and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libghc-convertible-dev

Remove libghc-convertible-dev Configurations and Data

To remove libghc-convertible-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libghc-convertible-dev

Remove libghc-convertible-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libghc-convertible-dev

Dependencies

libghc-convertible-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libghc-convertible-dev package on Debian 9 using different package management tools: apt, apt-get and aptitude.