{"id":13396970,"url":"https://github.com/bodil/purescript-signal","last_synced_at":"2025-04-06T03:04:46.197Z","repository":{"id":54224152,"uuid":"24244424","full_name":"bodil/purescript-signal","owner":"bodil","description":"Elm style FRP library for PureScript","archived":false,"fork":false,"pushed_at":"2022-04-30T07:51:12.000Z","size":248,"stargazers_count":260,"open_issues_count":9,"forks_count":41,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-30T02:03:28.942Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bodil.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":"2014-09-19T20:27:49.000Z","updated_at":"2024-12-16T08:15:13.000Z","dependencies_parsed_at":"2022-08-13T09:31:16.716Z","dependency_job_id":null,"html_url":"https://github.com/bodil/purescript-signal","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodil%2Fpurescript-signal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodil%2Fpurescript-signal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodil%2Fpurescript-signal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodil%2Fpurescript-signal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodil","download_url":"https://codeload.github.com/bodil/purescript-signal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247426998,"owners_count":20937199,"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-07-30T18:01:08.578Z","updated_at":"2025-04-06T03:04:46.170Z","avatar_url":"https://github.com/bodil.png","language":"PureScript","readme":"# purescript-signal\n\n[![Build Status](https://travis-ci.org/bodil/purescript-signal.svg?branch=master)](https://travis-ci.org/bodil/purescript-signal)\n\nSignal is a lightweight FRP-like library heavily inspired by the Elm Signal implementation. Where possible and sensible, it tries to maintain API equivalence with Elm.\n\nSee [the Elm documentation](http://elm-lang.org:1234/guide/reactivity#signals) for details on usage and principles.\n\n## PureScript Usage Patterns\n\nPureScript depends on effects (specifically, the `Effect` monad) to manage side effects, where Elm's runtime generally manages them for you. `purescript-signal` provides the `Signal.runSignal` function for running effectful signals.\n\n```purescript\nmodule Main where\n\nimport Effect.Console\nimport Effect (Effect)\nimport Prelude\nimport Signal\n\nhello :: Signal String\nhello = constant \"Hello Joe!\"\n\nhelloEffect :: Signal (Effect Unit)\nhelloEffect = hello ~\u003e log\n\nmain = runSignal helloEffect\n```\n\nThis simple example takes a constant signal which contains the string `\"Hello Joe!\"` and maps it over the `Effect.Console.log` function, which has the type `String -\u003e Effect Unit`, thus taking the `String` content of the signal and turning it into an effect which logs the provided string to the user's console.\n\nThis gives us a `Signal (Effect Unit)`. We use `runSignal` to take the signal of effects and run each effect in turn—in our case, just the one effect which prints `\"Hello Joe!\"` to the console.\n\n## API Documentation\n\n* [Module documentation on Pursuit](https://pursuit.purescript.org/packages/purescript-signal/)\n\n## Usage Examples\n\n* The canonical Elm Mario: https://github.com/michaelficarra/purescript-demo-mario\n* Ponies: https://github.com/bodil/purescript-is-magic\n","funding_links":[],"categories":["Asynchronicity and Parallelism","Async"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodil%2Fpurescript-signal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodil%2Fpurescript-signal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodil%2Fpurescript-signal/lists"}