"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.updateService = exports.updateService_ = void 0
const provideSome_1 = require("./provideSome")
/**
 * Updates a service in the environment of this effect.
 */
function updateService_(self, tag, f, __trace) {
  return (0, provideSome_1.provideSome_)(
    self,
    (r) => ({ ...r, ...tag.of(f(tag.read(r))) }),
    __trace
  )
}
exports.updateService_ = updateService_
/**
 * Updates a service in the environment of this effect.
 *
 * @dataFirst updateService_
 */
function updateService(tag, f, __trace) {
  return (self) => updateService_(self, tag, f, __trace)
}
exports.updateService = updateService
//# sourceMappingURL=updateService.js.map
