`Effect.fn` Pipe Parameters Restriction to Effects

Hi! Is there any reason why Effect.fn is not allowed to become anything else than effects when you use the pipe parameters it provides?

Example:
const f = E.fn(
  function* (a: number, b: number) {
    return a + b
  },
  (e) => [e], // This is not allowed!
)
// I would expect f to be of type
// f: (a: number, b: number) => [Effect<number>]
Was this page helpful?