How to Install and Uninstall libghc-ghc-typelits-knownnat-dev Package on Kali Linux

Last updated: May 17,2024

1. Install "libghc-ghc-typelits-knownnat-dev" package

This tutorial shows how to install libghc-ghc-typelits-knownnat-dev on Kali Linux

$ sudo apt update $ sudo apt install libghc-ghc-typelits-knownnat-dev

2. Uninstall "libghc-ghc-typelits-knownnat-dev" package

Learn how to uninstall libghc-ghc-typelits-knownnat-dev on Kali Linux:

$ sudo apt remove libghc-ghc-typelits-knownnat-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the libghc-ghc-typelits-knownnat-dev package on Kali Linux

Package: libghc-ghc-typelits-knownnat-dev
Source: haskell-ghc-typelits-knownnat (0.7.9-1)
Version: 0.7.9-1+b1
Installed-Size: 488
Maintainer: Debian Haskell Group
Architecture: amd64
Provides: libghc-ghc-typelits-knownnat-dev-0.7.9-f6a8f
Depends: libghc-base-dev-4.17.2.0-68dfe, libghc-ghc-dev-9.4.7-ea902, libghc-ghc-prim-dev-0.9.1-ca9fc, libghc-ghc-tcplugins-extra-dev-0.4.5-ab127, libghc-ghc-typelits-natnormalise-dev-0.7.9-da8e4, libghc-template-haskell-dev-2.19.0.0-a5ee2, libghc-transformers-dev-0.5.6.2-931c3, libc6 (>= 2.2.5), libgmp10 (>= 2:6.3.0+dfsg), libtinfo6 (>= 6)
Size: 70072
SHA256: b6a5ecf89c4868a3180648c0775e66a6b19147f251f3c4595680d306cec0ecc0
SHA1: de9d7de9764e3ee5c2b9f621436784a76f83143f
MD5sum: 48c9be023192a857c1e01be7bea386e3
Description: Derive KnownNat constraints from other KnownNat constraints
A type checker plugin for GHC that can derive "complex" KnownNat
constraints from other simple/variable KnownNat constraints. i.e. without
this plugin, you must have both a KnownNat n and a KnownNat (n+2)
constraint in the type signature of the following function:
.
f :: forall n . (KnownNat n, KnownNat (n+2)) => Proxy n -> Integer
f _ = natVal (Proxy :: Proxy n) + natVal (Proxy :: Proxy (n+2))
.
Using the plugin you can omit the KnownNat (n+2) constraint:
.
f :: forall n . KnownNat n => Proxy n -> Integer
f _ = natVal (Proxy :: Proxy n) + natVal (Proxy :: Proxy (n+2))
.
The plugin can derive KnownNat constraints for types consisting of:
.
* Type variables, when there is a corresponding KnownNat constraint
.
* Type-level naturals
.
* Applications of the arithmetic expression: +,-,*,^
.
* Type functions, when there is either:
.
1. a matching given KnownNat constraint; or
.
2. a corresponding KnownNat instance for the type function
.
To use the plugin, add the
.
OPTIONS_GHC -fplugin GHC.TypeLits.KnownNat.Solver
.
Pragma to the header of your file.
.
This package provides a library for the Haskell programming language.
See http://www.haskell.org/ for more information on Haskell.
Description-md5:
Homepage: https://clash-lang.org/
Ghc-Package: ghc-typelits-knownnat-0.7.9-3n5GnDWtiquBmcLeZtkNww
Section: haskell
Priority: optional
Filename: pool/main/h/haskell-ghc-typelits-knownnat/libghc-ghc-typelits-knownnat-dev_0.7.9-1+b1_amd64.deb