{"id":18571856,"url":"https://github.com/koterpillar/appendmap","last_synced_at":"2025-04-10T07:30:49.330Z","repository":{"id":54380278,"uuid":"144973650","full_name":"koterpillar/appendmap","owner":"koterpillar","description":"A Data.Map wrapper with a Monoid instance that delegates to the individual keys","archived":false,"fork":false,"pushed_at":"2024-02-17T11:10:46.000Z","size":24,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T01:02:04.363Z","etag":null,"topics":["containers","data-structures","haskell","map","monoid","semigroup"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koterpillar.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":null,"security":null,"support":null}},"created_at":"2018-08-16T10:33:40.000Z","updated_at":"2021-04-06T22:20:25.000Z","dependencies_parsed_at":"2022-08-13T14:00:35.760Z","dependency_job_id":null,"html_url":"https://github.com/koterpillar/appendmap","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koterpillar%2Fappendmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koterpillar%2Fappendmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koterpillar%2Fappendmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koterpillar%2Fappendmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koterpillar","download_url":"https://codeload.github.com/koterpillar/appendmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223282326,"owners_count":17119244,"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":["containers","data-structures","haskell","map","monoid","semigroup"],"created_at":"2024-11-06T23:04:00.221Z","updated_at":"2024-11-06T23:04:00.807Z","avatar_url":"https://github.com/koterpillar.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# appendmap\n\n![Build status](https://github.com/koterpillar/appendmap/workflows/Build/badge.svg)\n[![Hackage](https://img.shields.io/hackage/v/appendmap.svg)](https://hackage.haskell.org/package/appendmap)\n[![Stackage LTS](https://www.stackage.org/package/appendmap/badge/lts)](https://www.stackage.org/lts/package/appendmap)\n[![Hackage dependencies](https://img.shields.io/hackage-deps/v/appendmap.svg)](https://packdeps.haskellers.com/feed?needle=appendmap)\n\nA `Data.Map` wrapper with a `Semigroup` and `Monoid` instances that delegate to\nthe individual keys.\n\n```haskell\nimport qualified Data.Map as Map\nimport Data.Map.Append\n\n\u003e one = AppendMap $ Map.fromList [(1, \"hello\"), (2, \"goodbye\")]\n\u003e two = AppendMap $ Map.fromList [(1, \"world\"), (3, \"again\")]\n\n\u003e unAppendMap (one \u003c\u003e two)\nfromList [(1, \"helloworld\"), (2, \"goodbye\"), (3, \"again\")]\n```\n\n## Motivation\n\n`Data.Map` has a `Semigroup` instance that keeps the values from the first\nargument in case of a key conflict:\n\n```haskell\nimport qualified Data.Map as Map\nimport Data.Map.Append\n\n\u003e Map.fromList [(1, \"hello\")] \u003c\u003e Map.fromList [(1, \"goodbye\")]\nfromList [(1, \"hello\")]\n```\n\nA different instance has been suggested for a long time\n([1](https://mail.haskell.org/pipermail/libraries/2012-April/017743.html),\n[2](https://ghc.haskell.org/trac/ghc/ticket/1460)), but this is a breaking change and hasn't happened yet (as of 2018-08).\n\n## Development\n\nSource code is formatted with `hindent` _then_ `stylish-haskell`.\n\n### Releasing\n\n* Run `./bumpversion patch|minor|major`. This will create a new version and push\n  it to the repository to be released.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoterpillar%2Fappendmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoterpillar%2Fappendmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoterpillar%2Fappendmap/lists"}