Skip to content

refactor: manage dependencies with Effect-ts Layers - #1

Open
March7qwq wants to merge 1 commit into
LiAlH4qwq:mainfrom
March7qwq:refactor/effect-layers
Open

refactor: manage dependencies with Effect-ts Layers#1
March7qwq wants to merge 1 commit into
LiAlH4qwq:mainfrom
March7qwq:refactor/effect-layers

Conversation

@March7qwq

Copy link
Copy Markdown

Summary

  • 抽象运行时环境、文件系统和 HTTP 客户端为 Effect Context services
  • 使用 Layer.succeed 提供生产实现,并用 AppLive 统一组装
  • 通过 Effect.provide(AppLive) 注入应用依赖

Verification

  • nix run nixpkgs#bun -- run check
  • nix run nixpkgs#bun -- run start -- check-cmd-exist echo
  • nix run nixpkgs#bun -- run start -- extract-text 'hello world'
  • git diff --check

Git safety

  • 使用普通 git push
  • 未使用 force push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant