How To Install libghc-clash-ghc-doc on Debian 12

Learn how to install libghc-clash-ghc-doc on Debian 12 with this tutorial. libghc-clash-ghc-doc is Clash

Introduction

In this tutorial we learn how to install libghc-clash-ghc-doc on Debian 12.

What is libghc-clash-ghc-doc

libghc-clash-ghc-doc is:

Clash is a functional hardware description language that borrows both its syntax and semantics from the functional programming language Haskell. The Clash compiler transforms these high-level descriptions to low-level synthesizable VHDL, Verilog, or SystemVerilog.

Features of Clash:

  • Strongly typed, but with a very high degree of type inference, enabling both safe and fast prototyping using concise descriptions.

  • Interactive REPL: load your designs in an interpreter and easily test all your component without needing to setup a test bench.

  • Higher-order functions, with type inference, result in designs that are fully parametric by default.

  • Synchronous sequential circuit design based on streams of values, called @Signal@s, lead to natural descriptions of feedback loops.

  • Support for multiple clock domains, with type safe clock domain crossing.

This package provides:

  • Clash Compiler binary using GHC/Haskell as a frontend

Prelude library: https://hackage.haskell.org/package/clash-prelude

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

There are three methods to install libghc-clash-ghc-doc on Debian 12. 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-clash-ghc-doc 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-clash-ghc-doc using apt-get by running the following command:

sudo apt-get -y install libghc-clash-ghc-doc

Install libghc-clash-ghc-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libghc-clash-ghc-doc using apt by running the following command:

sudo apt -y install libghc-clash-ghc-doc

Install libghc-clash-ghc-doc 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-clash-ghc-doc using aptitude by running the following command:

sudo aptitude -y install libghc-clash-ghc-doc

How To Uninstall libghc-clash-ghc-doc on Debian 12

To uninstall only the libghc-clash-ghc-doc package we can use the following command:

sudo apt-get remove libghc-clash-ghc-doc

Uninstall libghc-clash-ghc-doc And Its Dependencies

To uninstall libghc-clash-ghc-doc and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libghc-clash-ghc-doc

Remove libghc-clash-ghc-doc Configurations and Data

To remove libghc-clash-ghc-doc configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libghc-clash-ghc-doc

Remove libghc-clash-ghc-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libghc-clash-ghc-doc

Dependencies

libghc-clash-ghc-doc have the following dependencies:

References

Summary

In this tutorial we learn how to install libghc-clash-ghc-doc package on Debian 12 using different package management tools: apt, apt-get and aptitude.