MCPcopy
hub / github.com/webpack/webpack / getEqual

Function getEqual

test/configCases/inner-graph/issue-12669/module.js:10–20  ·  view source on GitHub ↗
(E)

Source from the content-addressed store, hash-verified

8import { makeOrd } from "../Ord";
9import * as P from "../Prelude";
10export function getEqual(E) {
11 return {
12 equals: y => x =>
13 x === y ||
14 (O.isNone(x)
15 ? O.isNone(y)
16 : O.isNone(y)
17 ? false
18 : E.equals(y.value)(x.value))
19 };
20}
21export function getShow(S) {
22 return {
23 show: ma => (O.isNone(ma) ? "none" : `some(${S.show(ma.value)})`)

Callers 1

getOrdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected