{"id":19502369,"url":"https://github.com/zio-archive/interop-scalaz","last_synced_at":"2026-03-27T04:04:21.439Z","repository":{"id":34964830,"uuid":"191025915","full_name":"zio-archive/interop-scalaz","owner":"zio-archive","description":null,"archived":true,"fork":false,"pushed_at":"2024-08-20T01:41:44.000Z","size":136,"stargazers_count":6,"open_issues_count":27,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T05:41:40.673Z","etag":null,"topics":["interoperability","scala","scalaz"],"latest_commit_sha":null,"homepage":"https://zio.dev/zio-interop-scalaz","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zio-archive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-09T15:52:45.000Z","updated_at":"2025-03-18T21:49:02.000Z","dependencies_parsed_at":"2023-12-14T18:48:21.504Z","dependency_job_id":"a0a4b870-9921-4431-ae83-3a147b514bd6","html_url":"https://github.com/zio-archive/interop-scalaz","commit_stats":{"total_commits":134,"total_committers":14,"mean_commits":9.571428571428571,"dds":0.4477611940298507,"last_synced_commit":"a8858689e174c1fad2b7e953932545132925a6af"},"previous_names":["zio-archive/interop-scalaz","zio/interop-scalaz"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio-archive%2Finterop-scalaz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio-archive%2Finterop-scalaz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio-archive%2Finterop-scalaz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zio-archive%2Finterop-scalaz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zio-archive","download_url":"https://codeload.github.com/zio-archive/interop-scalaz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250917284,"owners_count":21507561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interoperability","scala","scalaz"],"created_at":"2024-11-10T22:16:14.234Z","updated_at":"2026-03-27T04:04:21.371Z","avatar_url":"https://github.com/zio-archive.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[//]: # (This file was autogenerated using `zio-sbt-website` plugin via `sbt generateReadme` command.)\n[//]: # (So please do not edit it manually. Instead, change \"docs/index.md\" file or sbt setting keys)\n[//]: # (e.g. \"readmeDocumentation\" and \"readmeSupport\".)\n\n# ZIO Interop Scalaz\n\nThis library provides instances for several Scalaz typeclasses.\n\n[![Development](https://img.shields.io/badge/Project%20Stage-Development-green.svg)](https://github.com/zio/zio/wiki/Project-Stages) ![CI Badge](https://github.com/zio/interop-scalaz/workflows/CI/badge.svg) [![Sonatype Releases](https://img.shields.io/nexus/r/https/oss.sonatype.org/dev.zio/zio-interop-scalaz7x_2.13.svg?label=Sonatype%20Release)](https://oss.sonatype.org/content/repositories/releases/dev/zio/zio-interop-scalaz7x_2.13/) [![Sonatype Snapshots](https://img.shields.io/nexus/s/https/oss.sonatype.org/dev.zio/zio-interop-scalaz7x_2.13.svg?label=Sonatype%20Snapshot)](https://oss.sonatype.org/content/repositories/snapshots/dev/zio/zio-interop-scalaz7x_2.13/) [![javadoc](https://javadoc.io/badge2/dev.zio/zio-interop-docs_2.13/javadoc.svg)](https://javadoc.io/doc/dev.zio/zio-interop-docs_2.13) [![ZIO Interop Scalaz](https://img.shields.io/github/stars/zio/interop-scalaz?style=social)](https://github.com/zio/interop-scalaz)\n\n## Installation\n\nIn order to use this library, we need to add the following line in our `build.sbt` file:\n\n```scala\nlibraryDependencies += \"dev.zio\" %% \"zio-interop-scalaz\" % \"7.3.3.0\"\n```\n\n## Example 1\n\n```scala\nimport scalaz._, Scalaz._\nimport zio.interop.scalaz._\n\ntype Database = IList[User]\n\ndef findUser(id: UserId): ZIO[Database, UserError, User] = ...\ndef findUsers(ids: IList[UserId]): ZIO[Database, UserError, IList[User]] = ids.traverse(findUser(_))\n```\n\n## `ZIO` parallel `Applicative` instance\n\nDue to `Applicative` and `Monad` coherence law `ZIO`'s `Applicative` instance has to be implemented in terms of `bind` hence when composing multiple effects using `Applicative` they will be sequenced. To cope with that limitation `ZIO` tagged with `Parallel` has an `Applicative` instance which is not `Monad` and operates in parallel.\n\n## Example 2\n\n```scala\nimport scalaz._, Scalaz._\nimport zio.interop.scalaz._\n\ncase class Dashboard(details: UserDetails, history: TransactionHistory)\n\ndef getDetails(id: UserId): ZIO[Database, UserError, UserDetails] = ...\ndef getHistory(id: UserId): ZIO[Database, UserError, TransactionHistory] = ...\n\ndef buildDashboard(id: UserId): ZIO[Database, UserError, Dashboard] =\n  Tag.unwrap(^(par(getDetails(id)), par(getHistory(id)))(Dashboard.apply))\n\ndef par[R, E, A](io: ZIO[R, E, A]): ParIO[R, E, A] = Tag(io)\n```\n\n## Documentation\n\nLearn more on the [ZIO Interop Scalaz homepage](https://zio.dev/zio-interop-scalaz)!\n\n## Contributing\n\nFor the general guidelines, see ZIO [contributor's guide](https://zio.dev/about/contributing).\n\n## Code of Conduct\n\nSee the [Code of Conduct](https://zio.dev/about/code-of-conduct)\n\n## Support\n\nCome chat with us on [![Badge-Discord]][Link-Discord].\n\n[Badge-Discord]: https://img.shields.io/discord/629491597070827530?logo=discord \"chat on discord\"\n[Link-Discord]: https://discord.gg/2ccFBr4 \"Discord\"\n\n## License\n\n[License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzio-archive%2Finterop-scalaz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzio-archive%2Finterop-scalaz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzio-archive%2Finterop-scalaz/lists"}