How To Install ghc-hxt on Fedora 36

In this tutorial we learn how to install ghc-hxt in Fedora 36. ghc-hxt is A collection of tools for processing XML with Haskell

Introduction

In this tutorial we learn how to install ghc-hxt on Fedora 36.

What is ghc-hxt

The Haskell XML Toolbox bases on the ideas of HaXml and HXML, but introduces a more general approach for processing XML with Haskell. The Haskell XML Toolbox uses a generic data model for representing XML documents, including the DTD subset and the document subset, in Haskell. It contains a validating XML parser, a HTML parser, namespace support, an XPath expression evaluator, an XSLT library, a RelaxNG schema validator and funtions for serialization and deserialization of user defined data. The library makes extensive use of the arrow approach for processing XML. Since version 9 the toolbox is partitioned into various (sub-)packages. This package contains the core functionality, hxt-curl, hxt-tagsoup, hxt-relaxng, hxt-xpath, hxt-xslt, hxt-regex-xmlschema contain the extensions. hxt-unicode contains encoding and decoding functions, hxt-charproperties char properties for unicode and XML. Changes from 9.3.1.21 ghc-9.0 compatibility Changes from 9.3.1.20 24-tuples, Either instance for xpickle Changes from 9.3.1.19

We can use yum or dnf to install ghc-hxt on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-hxt.

Install ghc-hxt on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-hxt using dnf by running the following command:

sudo dnf -y install ghc-hxt

Install ghc-hxt on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-hxt using yum by running the following command:

sudo yum -y install ghc-hxt

How To Uninstall ghc-hxt on Fedora 36

To uninstall only the ghc-hxt package we can use the following command:

sudo dnf remove ghc-hxt

ghc-hxt Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/34
/usr/lib/.build-id/34/50bc859ebb135719eaec10882918a447dca15d
/usr/lib64/libHShxt-9.3.1.22-K663E2Vu5LC1JQsjQNG8Y7-ghc8.10.5.so
/usr/share/licenses/ghc-hxt
/usr/share/licenses/ghc-hxt/LICENSE

References

Summary

In this tutorial we learn how to install ghc-hxt on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).