Skip to content

Remove redundant Layer.mergeAll from Effect.provide #734

Open

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

Activity

  1. added a commit that references this issue on May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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