// ets_tracing: off
import type { Tag } from "../Has/index.js"
import type { Effect } from "./effect.js"
import { map_ } from "./map.js"
/**
* Maps the success value of this effect to a service.
*
* @datFirst asService_
*/
export function asService(has: Tag, __trace?: string) {
return (fa: Effect) => asService_(fa, has, __trace)
}
/**
* Maps the success value of this effect to a service.
*/
export function asService_(
fa: Effect,
tag: Tag,
__trace?: string
) {
return map_(fa, tag.has, __trace)
}