{"id":21517585,"url":"https://github.com/tek/incipit-core","last_synced_at":"2025-09-08T22:45:24.725Z","repository":{"id":62436235,"uuid":"463136263","full_name":"tek/incipit-core","owner":"tek","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-02T11:37:01.000Z","size":128,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-03T02:51:50.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tek.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-24T12:16:25.000Z","updated_at":"2025-08-02T11:37:05.000Z","dependencies_parsed_at":"2024-02-17T11:29:42.947Z","dependency_job_id":"57b9c28a-8156-4f92-af5e-062496cdc919","html_url":"https://github.com/tek/incipit-core","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"278895f47353c8b2101a78280e91cbf95aacff20"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/tek/incipit-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fincipit-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fincipit-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fincipit-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fincipit-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tek","download_url":"https://codeload.github.com/tek/incipit-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fincipit-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231241,"owners_count":25245659,"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-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2024-11-24T00:43:05.426Z","updated_at":"2025-09-08T22:45:24.688Z","avatar_url":"https://github.com/tek.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nThis project contains two Haskell packages that provide `Prelude` modules for projects that heavily use [Polysemy].\nIt is related to the repository [incipit], which contains another `Prelude` that reexports some additional libraries and\nis separate from this project due to Cabal dependency cycles.\nThe purpose of each package is:\n\n* `incipit-base`: Exports from `base`, plus some additional utilities\n* `incipit-core`: Exports from Polysemy proper\n* `incipit`: Additional exports from `polysemy-log`, `polysemy-time`, `polysemy-conc`, `polysemy-resume`\n\n# Usage\n\nUsing a custom `Prelude` requires the use of Cabal mixins to hide the module from `base` and replace it with\n`IncipitCore` or `IncipitBase`:\n\nFor `hpack`:\n```yaml\ndependencies:\n  - name: base\n    version: '\u003e= 4 \u0026\u0026 \u003c 5'\n    mixin:\n      - hiding (Prelude)\n  - name: incipit-core\n    version: '\u003e= 0.3'\n    mixin:\n      - (IncipitCore as Prelude)\n      - hiding (IncipitCore)\n```\n\nFor `cabal`:\n```cabal\nbuild-depends:\n    base \u003e=4 \u0026\u0026 \u003c5, incipit-core \u003e= 0.3\nmixins:\n    base hiding (Prelude), incipit-core (IncipitCore as Prelude), incipit-core hiding (IncipitCore)\n```\n\nThese packages used to export `Prelude`, but\n[stack can't deal with that](https://github.com/commercialhaskell/stack/issues/5414).\n\n# Custom Prelude\n\nIn order to extend `incipit-core` (or `incipit-base`) with a local `Prelude`, the modules `IncipitCore` or `IncipitBase`\nhave to be reexported:\n\n```yaml\ndependencies:\n  - name: base\n    version: '\u003e= 4 \u0026\u0026 \u003c 5'\n    mixin:\n      - hiding (Prelude)\n  - incipit-core \u003e= 0.3\n```\n\n```haskell\nmodule Prelude (\n  module Prelude,\n  module IncipitCore,\n) where\n\nimport IncipitCore\n\nprojectName :: Text\nprojectName =\n  \"spaceship\"\n```\n\n[Polysemy]: https://github.com/polysemy-research/polysemy\n[incipit]: https://github.com/tek/incipit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fincipit-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftek%2Fincipit-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fincipit-core/lists"}