package ppx_matches

  1. Overview
  2. Docs
Small ppx to help check if a value matches a pattern

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.tar.gz
md5=1c896b531c225b33d88b785f20b370f8
sha512=89d4c951f3f8b5e8b39a21e61e2e4763762b48af5c7e6738fa91a157e15c7c2324d9a3d1a95a8c3973f6ea5c9c04b0a782365258226ead2351fea8a3c26a9ae9

Description

Translates [%matches? ] into (function | -> true | _ -> false)

Published: 07 Sep 2021

README

ppx_matches

Translates

[%matches? Some(2)]

into

(function | Some(2) => true | _ => false) : int option -> bool

Dependencies (3)

  1. dune >= "2.9"
  2. ppxlib >= "0.15.0"
  3. ocaml >= "4.04"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.