{"id":28932325,"url":"https://github.com/juspay/purescript-backtrack","last_synced_at":"2026-02-01T06:32:48.525Z","repository":{"id":58229678,"uuid":"110168821","full_name":"juspay/purescript-backtrack","owner":"juspay","description":"A monad transformer for handling backtrack in continuation based programs","archived":false,"fork":false,"pushed_at":"2023-07-04T08:37:18.000Z","size":14,"stargazers_count":3,"open_issues_count":1,"forks_count":8,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-01-24T18:37:15.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","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/juspay.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":"2017-11-09T21:35:30.000Z","updated_at":"2023-12-19T07:09:25.000Z","dependencies_parsed_at":"2025-06-22T16:53:06.645Z","dependency_job_id":null,"html_url":"https://github.com/juspay/purescript-backtrack","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/juspay/purescript-backtrack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fpurescript-backtrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fpurescript-backtrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fpurescript-backtrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fpurescript-backtrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juspay","download_url":"https://codeload.github.com/juspay/purescript-backtrack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fpurescript-backtrack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28970558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T05:48:53.985Z","status":"ssl_error","status_checked_at":"2026-02-01T05:47:55.855Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-06-22T16:41:24.283Z","updated_at":"2026-02-01T06:32:48.520Z","avatar_url":"https://github.com/juspay.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-backtrack\n\nA monad transformer for implementing backtracking in continuation based program.\n\nThis library is purescript equivalent of Haskell library [`failback-monad`](http://haskell-web.blogspot.com/2012/03/failback-monad.html)\n\n## Installation\n\n```\nbower install purescript-backtrack\n```\n\n## Example\n\n```\nmain :: forall e. Eff (console::CONSOLE,random:: RANDOM|e) (FailBack Unit)\nmain = runBackT $ do\n  _ ← BackT $ pure \u003c$\u003e log \"Starting Run\"\n  a ← backpointRandomInt\n  _ ← BackT $ pure \u003c$\u003e log \"Generated a number\"\n  _ ← if (a \u003e= 9) then pure unit else BackT (pure GoBack)\n  b ← backpointRandomInt\n  _ ← BackT $ pure \u003c$\u003e log \"Generated another number\"\n  _ ← if (b \u003e= 9) then pure unit else BackT (pure GoBack)\n  BackT $ pure \u003c$\u003e logShow (a + b)\n\nbackpointRandomInt :: forall eff. BackT (Eff ( random :: RANDOM | eff)) Int\nbackpointRandomInt = BackT $ BackPoint \u003c$\u003e (randomInt 1 10)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fpurescript-backtrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuspay%2Fpurescript-backtrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fpurescript-backtrack/lists"}