How To Install ocaml-ppx-let on Fedora 36

In this tutorial we learn how to install ocaml-ppx-let in Fedora 36. ocaml-ppx-let is Monadic let-bindings for OCaml

Introduction

In this tutorial we learn how to install ocaml-ppx-let on Fedora 36.

What is ocaml-ppx-let

Ppx_let is a ppx rewriter for monadic and applicative let bindings, match expressions, and if expressions. The aim of this rewriter is to make monadic and applicative code look nicer by writing custom binders the same way that we normally bind variables. In OCaml, the common way to bind the result of a computation to a variable is let VAR = EXPR in BODY ppx_let simply adds two new binders rewritten into calls to the bind and map functions respectively. These functions are expected to have val map val bind for some type t, as one might expect. These functions are to be provided by the user, and are generally expected to be part of the signatures of monads and applicatives modules. This is the case for all monads and applicatives defined by the Jane Street’s Core suite of libraries.

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

Install ocaml-ppx-let 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 ocaml-ppx-let using dnf by running the following command:

sudo dnf -y install ocaml-ppx-let

Install ocaml-ppx-let 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 ocaml-ppx-let using yum by running the following command:

sudo yum -y install ocaml-ppx-let

How To Uninstall ocaml-ppx-let on Fedora 36

To uninstall only the ocaml-ppx-let package we can use the following command:

sudo dnf remove ocaml-ppx-let

ocaml-ppx-let Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/f24e37b515aff1a7bebd9bf27dff5d2feed61a
/usr/lib/.build-id/41
/usr/lib/.build-id/41/53fe1c5ce94b7b69771c6ed9a0796d40184ab2
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/b0219115557b6200e7dee001ece82d6f10f027
/usr/lib64/ocaml/ppx_let
/usr/lib64/ocaml/ppx_let/META
/usr/lib64/ocaml/ppx_let/expander
/usr/lib64/ocaml/ppx_let/expander/ppx_let_expander.cma
/usr/lib64/ocaml/ppx_let/expander/ppx_let_expander.cmi
/usr/lib64/ocaml/ppx_let/expander/ppx_let_expander.cmxs
/usr/lib64/ocaml/ppx_let/ppx.exe
/usr/lib64/ocaml/ppx_let/ppx_let.cma
/usr/lib64/ocaml/ppx_let/ppx_let.cmi
/usr/lib64/ocaml/ppx_let/ppx_let.cmxs
/usr/share/doc/ocaml-ppx-let
/usr/share/doc/ocaml-ppx-let/CHANGES.md
/usr/share/doc/ocaml-ppx-let/README.md
/usr/share/licenses/ocaml-ppx-let
/usr/share/licenses/ocaml-ppx-let/LICENSE.md

References

Summary

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


title: “How To Install ocaml-ppx-let on Fedora 36” linkTitle: “ocaml-ppx-let” type: “docs” description: “In this tutorial we learn how to install ocaml-ppx-let in Fedora 36. ocaml-ppx-let is Monadic let-bindings for OCaml” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/ocaml-ppx-let-featured.png

Introduction

In this tutorial we learn how to install ocaml-ppx-let on Fedora 36.

What is ocaml-ppx-let

Ppx_let is a ppx rewriter for monadic and applicative let bindings, match expressions, and if expressions. The aim of this rewriter is to make monadic and applicative code look nicer by writing custom binders the same way that we normally bind variables. In OCaml, the common way to bind the result of a computation to a variable is let VAR = EXPR in BODY ppx_let simply adds two new binders rewritten into calls to the bind and map functions respectively. These functions are expected to have val map val bind for some type t, as one might expect. These functions are to be provided by the user, and are generally expected to be part of the signatures of monads and applicatives modules. This is the case for all monads and applicatives defined by the Jane Street’s Core suite of libraries.

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

Install ocaml-ppx-let 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 ocaml-ppx-let using dnf by running the following command:

sudo dnf -y install ocaml-ppx-let

Install ocaml-ppx-let 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 ocaml-ppx-let using yum by running the following command:

sudo yum -y install ocaml-ppx-let

How To Uninstall ocaml-ppx-let on Fedora 36

To uninstall only the ocaml-ppx-let package we can use the following command:

sudo dnf remove ocaml-ppx-let

ocaml-ppx-let Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/d2d33e8983bb40bf55e3dce3a3a17ec1d45aa7
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/5edbecce6917a3a3cdb67203afbf5040bdd1f7
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/327916e1f72886fd9a0adc4b9333075d79798e
/usr/lib/ocaml/ppx_let
/usr/lib/ocaml/ppx_let/META
/usr/lib/ocaml/ppx_let/expander
/usr/lib/ocaml/ppx_let/expander/ppx_let_expander.cma
/usr/lib/ocaml/ppx_let/expander/ppx_let_expander.cmi
/usr/lib/ocaml/ppx_let/expander/ppx_let_expander.cmxs
/usr/lib/ocaml/ppx_let/ppx.exe
/usr/lib/ocaml/ppx_let/ppx_let.cma
/usr/lib/ocaml/ppx_let/ppx_let.cmi
/usr/lib/ocaml/ppx_let/ppx_let.cmxs
/usr/share/doc/ocaml-ppx-let
/usr/share/doc/ocaml-ppx-let/CHANGES.md
/usr/share/doc/ocaml-ppx-let/README.md
/usr/share/licenses/ocaml-ppx-let
/usr/share/licenses/ocaml-ppx-let/LICENSE.md

References

Summary

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