Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Adding a name to @accessible #59

Merged
merged 1 commit into from
Nov 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/accessible.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ To use simply add `"dev.zio" %% "zio-macros-core" % "<version>"` to your `librar

The `@accessible` annotation can be used on _modules_ following the [module pattern](https://zio.dev/docs/howto/howto_use_module_pattern).

When applied to the _module_ it will autogenerate the `>` container in module's compation object with helpers to access service capabilities:
When applied to the _module_ it will autogenerate the container with a given name in the module's companion object with helpers to access service capabilities:

```scala
import zio.macros.annotation.accessible

@accessible
@accessible(">")
trait Example {
val example: Example.Service[Any]
}
Expand Down