{"id":21467922,"url":"https://github.com/danr/genifunctors","last_synced_at":"2025-07-15T05:32:12.120Z","repository":{"id":10488241,"uuid":"12668496","full_name":"danr/genifunctors","owner":"danr","description":" Generate generalized fmap, foldMap and traverse","archived":false,"fork":false,"pushed_at":"2016-11-14T10:26:05.000Z","size":38,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-28T14:09:27.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/genifunctors","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/danr.png","metadata":{"files":{"readme":"README.md","changelog":"changelog","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":"2013-09-07T17:19:55.000Z","updated_at":"2019-12-22T00:54:49.000Z","dependencies_parsed_at":"2022-07-30T18:38:02.307Z","dependency_job_id":null,"html_url":"https://github.com/danr/genifunctors","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danr%2Fgenifunctors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danr%2Fgenifunctors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danr%2Fgenifunctors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danr%2Fgenifunctors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danr","download_url":"https://codeload.github.com/danr/genifunctors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226018993,"owners_count":17560756,"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":[],"created_at":"2024-11-23T08:20:35.406Z","updated_at":"2024-11-23T08:20:37.261Z","avatar_url":"https://github.com/danr.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Generate (derive) generalized `fmap`, `foldMap` and `traverse` for `Bifunctors`,\n`Trifunctors`, or a functor with any arity\n\nExample:\n\n    data U a b c d\n        = L [U a b c d]               -- polymorphic recursion\n        | M (V (a,b) (Either c d))    -- mutually recursive\n        | a :+: Int                   -- infix syntax, record syntax, type synonyms\n        | R { c :: c, d :: String }   -- and primitive data types supported\n\n    data V u v = X (U v v u u) | Z u\n\n    fmapU :: (a -\u003e a') -\u003e (b -\u003e b') -\u003e (c -\u003e c') -\u003e (d -\u003e d') -\u003e\n             U a b c d -\u003e U a' b' c' d'\n    fmapU = $(genFmap ''U)\n\n    foldU :: Monoid m =\u003e (a -\u003e m) -\u003e (b -\u003e m) -\u003e (c -\u003e m) -\u003e (d -\u003e m) -\u003e\n             U a b c d -\u003e m\n    foldU = $(genFoldMap ''U)\n\n    travU :: Applicative f =\u003e\n             (a -\u003e f a') -\u003e (b -\u003e f b') -\u003e (c -\u003e f c') -\u003e (d -\u003e f d') -\u003e\n             U a b c d -\u003e f (U a' b' c' d')\n    travU = $(genTraverse ''U)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanr%2Fgenifunctors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanr%2Fgenifunctors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanr%2Fgenifunctors/lists"}