Skip to content

Remove redundant Layer.mergeAll from Effect.provide #734

Description

@thewilkybarkid

What is the problem this feature would solve?

Effect.provide can take an array, so using Layer.mergeAll is redundant (when not doing further transformations).

What is the feature you are proposing to solve the problem?

Effect.provide(Layer.mergeAll(foo, bar)) becomes Effect.provide([foo, bar]).

Effect.provide(Layer.mergeAll(foo, bar).pipe(Layer.provide(baz)) is left untouched.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions