How To Install ghc-HsYAML on Fedora 36

In this tutorial we learn how to install ghc-HsYAML in Fedora 36. ghc-HsYAML is Pure Haskell YAML 1.2 processor

Introduction

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

What is ghc-HsYAML

‘HsYAML’ is a [YAML 1.2](http a library for parsing and serializing YAML documents. Features of ‘HsYAML’ include * Pure Haskell implementation with small dependency footprint and emphasis on strict compliance with the <http * Direct decoding to native Haskell types via (‘aeson’-inspired) typeclass-based API (see “Data.YAML”). * Allows round-tripping while preserving ordering, anchors, and comments at Event-level. * Support for constructing custom YAML node graph representation (including support for cyclic YAML data structures). * Support for the standard (untyped) /Failsafe/, (strict) /JSON/, and (flexible) /Core/ “schemas” providing implicit typing rules as defined in the YAML 1.2 specification (including support for user-defined custom schemas). * Support for emitting YAML using /Failsafe/, (strict) /JSON/, and (flexible) /Core/ “schemas” (including support for user-defined custom encoding schemas * Event-based API resembling LibYAML’s Event-based API (see “Data.YAML.Event”). * Low-level API access to lexical token-based scanner (see “Data.YAML.Token”).

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

Install ghc-HsYAML 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-HsYAML using dnf by running the following command:

sudo dnf -y install ghc-HsYAML

Install ghc-HsYAML 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-HsYAML using yum by running the following command:

sudo yum -y install ghc-HsYAML

How To Uninstall ghc-HsYAML on Fedora 36

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

sudo dnf remove ghc-HsYAML

ghc-HsYAML Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/0e7304713b1e9d865b4e96dbdeb2c1c79b011d
/usr/lib64/libHSHsYAML-0.2.1.0-87lvgT9tQPF1TjsCIaBtiW-ghc8.10.5.so
/usr/share/licenses/ghc-HsYAML
/usr/share/licenses/ghc-HsYAML/LICENSE.GPLv2
/usr/share/licenses/ghc-HsYAML/LICENSE.GPLv3

References

Summary

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