/monocle-ts

Functional optics: a (partial) porting of Scala monocle (Deno support)

Primary LanguageTypeScriptMIT LicenseMIT

monocle-ts for Deno 🦕

monocle-ts is a library for functional optics in TypeScript.

Unfortunately monocle-ts is not available for Deno, because:

  1. monocle-ts's Gcanti does not want to support Deno (yet)
  2. Esm.sh keeps breaking and doesn't support all types (Jul 2022)
  3. Skypack fails to support fp-ts (Jul 2022)

This repo is the first working Deno port I am aware of. Feel free to open an issue here if you experience any problems.

fp-ts for Deno is also available.

Installation / Usage

Note: This package is only available for version monocle-ts@2.3.13 for now

import * as L from 'https://raw.githubusercontent.com/michaelhirn/monocle-ts/master/lib/Lens.ts'

ToDo