fp-ts-std
Version:
The missing pseudo-standard library for fp-ts.
19 lines (18 loc) • 524 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.traceShowWithValue = exports.traceWithValue = exports.trace = void 0;
const trace = (msg) => (x) => {
console.log(msg);
return x;
};
exports.trace = trace;
const traceWithValue = (msg) => (x) => {
console.log(msg, x);
return x;
};
exports.traceWithValue = traceWithValue;
const traceShowWithValue = (S) => (msg) => (x) => {
console.log(msg, S.show(x));
return x;
};
exports.traceShowWithValue = traceShowWithValue;