{"id":16711750,"url":"https://github.com/arthurxavierx/purescript-comonad-ui-todos","last_synced_at":"2025-10-07T01:25:40.764Z","repository":{"id":49719366,"uuid":"111211203","full_name":"arthurxavierx/purescript-comonad-ui-todos","owner":"arthurxavierx","description":"Simple task management application for my bachelor thesis based on Phil Freeman's Comonads as spaces","archived":false,"fork":false,"pushed_at":"2020-08-16T10:05:10.000Z","size":915,"stargazers_count":53,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T19:51:13.800Z","etag":null,"topics":["comonads","purescript","ui"],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arthurxavierx.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-11-18T14:16:13.000Z","updated_at":"2023-09-03T10:06:46.000Z","dependencies_parsed_at":"2022-08-28T02:24:05.328Z","dependency_job_id":null,"html_url":"https://github.com/arthurxavierx/purescript-comonad-ui-todos","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/arthurxavierx%2Fpurescript-comonad-ui-todos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurxavierx%2Fpurescript-comonad-ui-todos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurxavierx%2Fpurescript-comonad-ui-todos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurxavierx%2Fpurescript-comonad-ui-todos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthurxavierx","download_url":"https://codeload.github.com/arthurxavierx/purescript-comonad-ui-todos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681077,"owners_count":20330155,"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":["comonads","purescript","ui"],"created_at":"2024-10-12T20:26:09.268Z","updated_at":"2025-10-07T01:25:35.724Z","avatar_url":"https://github.com/arthurxavierx.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-comonad-ui-todos\n\nSimple task management application inspired by [TodoMVC](todomvc.com); written for the first part of my bachelor thesis [Comonads for User Interfaces](https://arthurxavierx.github.com/ComonadsForUIs.pdf) based on Phil Freeman's [Comonads as spaces](http://blog.functorial.com/posts/2016-08-07-Comonads-As-Spaces.html).\n\nThis simple application demonstrates three types of UIs modelled with three different comonads, namely:\n\n- the `Store` comonad: models a general architecture where every component fully exposes its state for read and write operations;\n- the `Moore i` comonad: isomorphic to `Cofree ((-\u003e) i)` or `Traced [i]`, this comonad models the Elm architecture where user component inputs are given by a type `i`;\n- the `Cofree f` comonad: models an object-oriented architecture similar to that of [Halogen](https://github.com/slamdata/purescript-halogen).\n\nWe have implemented local storage in the browser for saving tasks for all UI examples. In the `Moore` example, however, it is still unclear what could be the best method for applying effects when of a component action (as the component state is private). We have used an _ad hoc_ approach by replicating a `save` function when of every user action.\n\n## Build instructions\n\nIn order to build this application one must have the [PureScript](http://www.purescript.org/) compiler (version 0.11.7) installed, as well as the [npm](https://www.npmjs.com/) and [bower](https://bower.io/) tools for package management.\n\nAfter installing the prerequisites, simply run\n\n```\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurxavierx%2Fpurescript-comonad-ui-todos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthurxavierx%2Fpurescript-comonad-ui-todos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurxavierx%2Fpurescript-comonad-ui-todos/lists"}