MCPcopy Index your code
hub / github.com/Effect-TS/effect / getMonoid

Function getMonoid

packages/printer/src/internal/docTree.ts:508–515  ·  view source on GitHub ↗
(_: void)

Source from the content-addressed store, hash-verified

506
507/** @internal */
508export const getMonoid = <A>(_: void): monoid.Monoid<DocTree.DocTree<A>> => {
509 return {
510 empty,
511 combine: (self, that) => concat(Arr.make(self, that)),
512 combineMany: (self, trees) => concat(Arr.fromIterable([self, ...trees])),
513 combineAll: (trees) => concat(Arr.fromIterable(trees))
514 }
515}
516
517/** @internal */
518export const Covariant: covariant.Covariant<DocTree.DocTree.TypeLambda> = {

Callers

nothing calls this directly

Calls 2

concatFunction · 0.70
makeMethod · 0.65

Tested by

no test coverage detected