package accessor

  1. Overview
  2. Docs
A library that makes it nicer to work with nested functional data structures

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=7875cdec612852f274aeeb23222309634cf5e605c81465ac4a85f164452e8020

Description

An accessor is a value that understands how to reach data within a larger data structure, independently from what you intend to do with it. Accessors allow you to read and write data and perform possibly-monadic traversals. By composing accessors, you can work with increasingly complex data structures.

In case you have ever heard of "lenses", this is an OCaml implementation of that idea.

Published: 26 May 2024

README

README.org

The ~Accessor~ library makes it nicer to work with nested functional data
structures.

An accessor is a value that understands how to reach data within a
larger data structure, independently from what you intend to do with
it. Accessors allow you to read and write data and perform
possibly-monadic traversals. By composing accessors, you can work with
increasingly complex data structures.

In case you have ever heard of "lenses", this is an OCaml
implementation of that idea.

See the [[./doc/tutorial.mdx][tutorial]] for more information.

Dependencies (5)

  1. dune >= "3.11.0"
  2. ppx_jane >= "v0.17" & < "v0.18"
  3. higher_kinded >= "v0.17" & < "v0.18"
  4. base >= "v0.17" & < "v0.18"
  5. ocaml >= "5.1.0"

Dev Dependencies

None

Used by (2)

  1. accessor_base >= "v0.17.0"
  2. ppx_accessor >= "v0.17.0"

Conflicts

None

OCaml

Innovation. Community. Security.