{"id":15664901,"url":"https://github.com/epost/purescript-free-turtle","last_synced_at":"2026-01-08T07:04:55.681Z","repository":{"id":149244305,"uuid":"25797251","full_name":"epost/purescript-free-turtle","owner":"epost","description":"A toy turtle graphics interpreter based on the Free monad, in PureScript, with HTML Canvas graphics support.","archived":false,"fork":false,"pushed_at":"2020-10-01T21:41:57.000Z","size":36,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T06:34:47.819Z","etag":null,"topics":["free-monad","purescript","turtle-graphics","tutorial-code"],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epost.png","metadata":{"files":{"readme":"README.org","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-27T00:52:37.000Z","updated_at":"2021-07-31T21:31:20.000Z","dependencies_parsed_at":"2023-09-03T08:48:39.235Z","dependency_job_id":null,"html_url":"https://github.com/epost/purescript-free-turtle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epost%2Fpurescript-free-turtle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epost%2Fpurescript-free-turtle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epost%2Fpurescript-free-turtle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epost%2Fpurescript-free-turtle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epost","download_url":"https://codeload.github.com/epost/purescript-free-turtle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246273552,"owners_count":20750906,"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":["free-monad","purescript","turtle-graphics","tutorial-code"],"created_at":"2024-10-03T13:44:28.540Z","updated_at":"2026-01-08T07:04:50.649Z","avatar_url":"https://github.com/epost.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+title: PureScript Free Turtle interpreter\n\nA simple Turtle graphics system implemented using a ~Free~ monad, intended for educational purposes. It comes with an interpreter that translates programs in the Turtle language to HTML canvas graphics.\n\n[[file:img/two-stars.png]]\n\n#+BEGIN_SRC purescript\nmain :: Effect Context2D\nmain = CanvasInterpreter.render \"turtleCanvas\" do\n  color Purple\n  star\n\n  forward 40.0\n  left 100.0\n\n  color Red\n  star\n\nstar = do\n  penDown\n  right 144.0\n  forward 100.0\n  right 144.0\n  forward 100.0\n  right 144.0\n  forward 100.0\n  right 144.0\n  forward 100.0\n  right 144.0\n  forward 100.0\n  penUp\n#+END_SRC\n\n*  Usage\n\nIn your shell, type:\n\n: npm install\n: npm run build\n: npm run bundle\n\nThen point your browser to [[./html/index.html]].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepost%2Fpurescript-free-turtle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepost%2Fpurescript-free-turtle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepost%2Fpurescript-free-turtle/lists"}