How To Install elpa-lsp-haskell on Kali Linux

In this tutorial we learn how to install elpa-lsp-haskell on Kali Linux. elpa-lsp-haskell is Haskell support for lsp-mode

Introduction

In this tutorial we learn how to install elpa-lsp-haskell on Kali Linux.

What is elpa-lsp-haskell

elpa-lsp-haskell is:

An Emacs Lisp library for interacting with a haskell-ide-engine server using Microsoft’s Language Server Protocol.

The library is designed to integrate with existing Emacs IDE frameworks (completion-at-point, xref (beginning with Emacs 25.1), flycheck, haskell-mode, intero, etc).

There are three methods to install elpa-lsp-haskell 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 elpa-lsp-haskell Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install elpa-lsp-haskell using apt-get by running the following command:

sudo apt-get -y install elpa-lsp-haskell

Install elpa-lsp-haskell Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install elpa-lsp-haskell using apt by running the following command:

sudo apt -y install elpa-lsp-haskell

Install elpa-lsp-haskell 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 elpa-lsp-haskell using aptitude by running the following command:

sudo aptitude -y install elpa-lsp-haskell

How To Uninstall elpa-lsp-haskell on Kali Linux

To uninstall only the elpa-lsp-haskell package we can use the following command:

sudo apt-get remove elpa-lsp-haskell

Uninstall elpa-lsp-haskell And Its Dependencies

To uninstall elpa-lsp-haskell and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove elpa-lsp-haskell

Remove elpa-lsp-haskell Configurations and Data

To remove elpa-lsp-haskell configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge elpa-lsp-haskell

Remove elpa-lsp-haskell configuration, data, and all of its dependencies

We can use the following command to remove elpa-lsp-haskell configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge elpa-lsp-haskell

Dependencies

elpa-lsp-haskell have the following dependencies:

References

Summary

In this tutorial we learn how to install elpa-lsp-haskell package on Kali Linux using different package management tools: apt, apt-get and aptitude.