ppx_monoid
A syntax extension for easier building of values of monoids.
Description
Assumes the existence of two operations in scope for some type t
:
empty : t
(^^) : t -> t -> t
ppx-monoid
, triggered by the PPX extension monoid
, reinterprets
the semicolon ;
to mean the monoid operation ^^
and the unit
expression ()
to mean empty
.
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
- Published
- 24 Mar 2016
- Authors
- Maintainers
Sources
Dependencies
Reverse Dependencies