{"id":21573541,"url":"https://github.com/co-log/co-log-core","last_synced_at":"2025-04-10T16:10:21.647Z","repository":{"id":38191062,"uuid":"411810355","full_name":"co-log/co-log-core","owner":"co-log","description":"🌽 Core types and functions that power the Haskell  `co-log`  implementation","archived":false,"fork":false,"pushed_at":"2025-03-02T07:35:30.000Z","size":136,"stargazers_count":17,"open_issues_count":5,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T13:51:21.915Z","etag":null,"topics":["co-log","contravariant","core","hacktoberfest","haskell","logging"],"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}},"created_at":"2021-09-29T19:51:20.000Z","updated_at":"2025-03-02T07:34:45.000Z","dependencies_parsed_at":"2025-03-08T01:31:12.898Z","dependency_job_id":null,"html_url":"https://github.com/co-log/co-log-core","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-log%2Fco-log-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/co-log","download_url":"https://codeload.github.com/co-log/co-log-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248250754,"owners_count":21072683,"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":["co-log","contravariant","core","hacktoberfest","haskell","logging"],"created_at":"2024-11-24T12:07:06.679Z","updated_at":"2025-04-10T16:10:21.633Z","avatar_url":"https://github.com/co-log.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# co-log-core\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-core/workflows/CI/badge.svg)](https://github.com/co-log/co-log-core/actions)\n[![Hackage][hk-img-core]][hk-core]\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-core` is a lightweight package that provides core types and functions to \nwork with the @LogAction@ data type which is both simple and powerful.\n\n## How to use\n\n`co-log-core` is compatible with the following GHC\nversions - [supported versions](https://matrix.hackage.haskell.org/#/package/co-log-core)\n\nIn order to start using `co-log-core` in your project, you\nwill need to set it up with these steps:\n\n1. Add the dependency on `co-log-core` 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   ```\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 Colog.Core (LogAction, logStringStdout, (\u003c\u0026))\n\n\n   app :: LogAction IO String -\u003e IO ()\n   app log = do\n       log \u003c\u0026 \"Starting app...\"\n       log \u003c\u0026 \"Finishing app...\"\n\n   main :: IO ()\n   main = app logStringStdout\n   ```\n \n \n[hk-img-core]: https://img.shields.io/hackage/v/co-log-core.svg?logo=haskell\n[hk-core]: https://hackage.haskell.org/package/co-log-core\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco-log%2Fco-log-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fco-log%2Fco-log-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco-log%2Fco-log-core/lists"}