{"id":22450113,"url":"https://github.com/co-log/co-log-polysemy","last_synced_at":"2025-10-04T11:13:27.633Z","repository":{"id":37925936,"uuid":"412869434","full_name":"co-log/co-log-polysemy","owner":"co-log","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-13T14:33:12.000Z","size":63,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T13:05:31.296Z","etag":null,"topics":["co-log","extensible-effects","hacktoberfest","haskell","logging","logging-library","polysemy"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/co-log.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2021-10-02T17:43:08.000Z","updated_at":"2025-08-13T14:33:15.000Z","dependencies_parsed_at":"2025-07-18T20:22:48.407Z","dependency_job_id":"3cc87913-2414-4b7c-9725-bcf509e2dde6","html_url":"https://github.com/co-log/co-log-polysemy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/co-log/co-log-polysemy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-polysemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-polysemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-polysemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-polysemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/co-log","download_url":"https://codeload.github.com/co-log/co-log-polysemy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-polysemy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278302562,"owners_count":25964526,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["co-log","extensible-effects","hacktoberfest","haskell","logging","logging-library","polysemy"],"created_at":"2024-12-06T05:13:13.162Z","updated_at":"2025-10-04T11:13:27.602Z","avatar_url":"https://github.com/co-log.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# co-log-polysemy\n\n![Co-logo](https://user-images.githubusercontent.com/8126674/80955687-92f21a80-8df7-11ea-90d3-422dafdc8391.png)\n\n[![GitHub CI](https://github.com/co-log/co-log-polysemy/workflows/CI/badge.svg)](https://github.com/co-log/co-log-polysemy/actions)\n[![Hackage][hk-img-ps]][hk-ps]\n[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](https://github.com/co-log/co-log/blob/main/LICENSE)\n\n`co-log-polysemy` package is a implementation of the \n[co-log-core](http://hackage.haskell.org/package/co-log-core) logging based on \nthe [polysemy](http://hackage.haskell.org/package/polysemy) extensible \neffects library.\n\n\n## How to use\n\n`co-log-polysemy` is compatible with the following GHC\nversions - [supported versions](https://matrix.hackage.haskell.org/#/package/co-log-polysemy)\n\nIn order to start using `co-log-polysemy` in your project, you\nwill need to set it up with these easy steps:\n\n1. Add the dependency on `co-log-polysemy` in your project's\n   `.cabal` file. For this, you should modify the `build-depends`\n   section according to the below section:\n\n   ```haskell\n   build-depends: base ^\u003e= LATEST_SUPPORTED_BASE\n                , co-log-core ^\u003e= LATEST_VERSION\n                , polysemy ^\u003e= LATEST_VERSION\n   ```\n\n2. To use this package, refer to the below example \n\n   ```haskell\n   module Main (main) where\n\n   import Prelude hiding (log)\n\n   import Polysemy (Member, Sem, runM)\n\n   import Colog.Core.IO (logStringStdout)\n   import Colog.Polysemy (Log, log, runLogAction)\n\n\n   example :: Member (Log String) r =\u003e Sem r ()\n   example = do\n        log @String \"First message...\"\n        log @String \"Second message...\"\n\n   main :: IO ()\n   main = runM $ runLogAction @IO logStringStdout example\n   ```\n\n\n[hk-img-ps]: https://img.shields.io/hackage/v/co-log-polysemy.svg?logo=haskell\n[hk-ps]: https://hackage.haskell.org/package/co-log-polysemy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco-log%2Fco-log-polysemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fco-log%2Fco-log-polysemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco-log%2Fco-log-polysemy/lists"}