How to Install and Uninstall hsx2hs Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 17,2024

1. Install "hsx2hs" package

This guide covers the steps necessary to install hsx2hs on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install hsx2hs

2. Uninstall "hsx2hs" package

Please follow the instructions below to uninstall hsx2hs on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove hsx2hs $ sudo apt autoclean && sudo apt autoremove

3. Information about the hsx2hs package on Ubuntu 21.10 (Impish Indri)

Package: hsx2hs
Architecture: amd64
Version: 0.14.1.8-1build5.1
Priority: extra
Section: universe/haskell
Source: haskell-hsx2hs
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Haskell Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 8515
Depends: libc6 (>= 2.34), libffi8 (>= 3.4), libgmp10
Filename: pool/universe/h/haskell-hsx2hs/hsx2hs_0.14.1.8-1build5.1_amd64.deb
Size: 1235946
MD5sum: 1bf9d1016b36ecefd08b5059b8a5b980
SHA1: f0de93644f6b800a54a7ce81554f4938698f858e
SHA256: cd5cf8ea594d0d6773c6ee3a2117216e7938b5f416605c326d28accc0dc4eb2d
SHA512: d334bb6d815be72de0a32b027fcb8a750aca1cc737fd2c53839fed2dd6c0e1a828053f5c56c5c149f1a5449fcf5a99c04f611e50296f5692c0552a6abcac24f6
Homepage: https://github.com/seereason/hsx2hs
Description-en: literal XML syntax in Haskell source code - preprocessor
HSX (Haskell Source with XML) allows literal XML syntax in Haskell
source code. The hsx2hs preprocessor translates .hsx source files
into ordinary .hs files. Literal XML syntax is translated into
function calls for creating XML values of the appropriate forms.
hsx2hs transforms literal XML syntax into a series of function calls.
Any project can make use of the syntax by providing definitions for
those functions, and the XML values produced will be of the types
specified. This works for any types, since hsx2hs doesn't make any
assumptions, or inserts any information depending on types.
XMLGenerator defines a few typeclasses that together cover the
functions injected by the preprocessor. A project that uses these
classes to provide the semantics for the injected syntax will be
able to use any functions written in terms of these, allowing
better code reusability than if each project defines its own
semantics for the XML syntax. Also, the classes makes it possible
to use the literal syntax at different types within the same module.
Achieving that is not as simple as it may seem, but the XMLGenerator
module provides all the necessary machinery.
.
This contains the hsx2hs executable for preprocessing.
Description-md5: 461b0320df183f57143573db3c54e3d7