How To Install libghc-th-utilities-dev on Kali Linux

In this tutorial we learn how to install libghc-th-utilities-dev on Kali Linux. libghc-th-utilities-dev is useful functions for use with Template Haskell

Introduction

In this tutorial we learn how to install libghc-th-utilities-dev on Kali Linux.

What is libghc-th-utilities-dev

libghc-th-utilities-dev is:

The ’th-utilities’ package provides a number of useful utilities for Template Haskell. In particular:

  • TH.Derive provides a convenient system for using TH to derive typeclass instances. It allows for open registration of TH derivers, and reuses instance syntax for invoking them.
    • TH.Derive.Storable defines derivation of Storable for ADTs.
  • TH.ReifyDataType provides utilities for reifying simplified datatype info. It omits details that you don’t usually want to handle, making it much more straightforward to generate code based on datatype structure.
  • TH.RelativePaths provides utilities for loading files based on paths relative to the cabal file. This is particularly handy for loading code into ghci even when its current dir isn’t the package dir. Ideally, this module would be used by everyone who currently uses qAddDependentFile.
  • TH.Utilities provides a miscellaneous set of utilities that are useful within this package and elsewhere.

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-th-utilities-dev on Kali Linux. 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-th-utilities-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-th-utilities-dev using apt-get by running the following command:

sudo apt-get -y install libghc-th-utilities-dev

Install libghc-th-utilities-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-th-utilities-dev

Install libghc-th-utilities-dev Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libghc-th-utilities-dev

How To Uninstall libghc-th-utilities-dev on Kali Linux

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

sudo apt-get remove libghc-th-utilities-dev

Uninstall libghc-th-utilities-dev And Its Dependencies

To uninstall libghc-th-utilities-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libghc-th-utilities-dev

Remove libghc-th-utilities-dev Configurations and Data

To remove libghc-th-utilities-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libghc-th-utilities-dev

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

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

sudo apt-get -y autoremove --purge libghc-th-utilities-dev

Dependencies

libghc-th-utilities-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libghc-th-utilities-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.