GitShow/sharkdp/purescript-flare
sharkdp

purescript-flare

A special-purpose UI library for Purescript

by sharkdp
purescriptreactiveui
Star on GitHubFork

PureScript

285 stars15 forks10 contributorsQuiet · 6y agoSince 2015v4.1.0

Meet the team

See all 10 on GitHub →
sharkdp
sharkdp87 contributions
koterpillar
koterpillar4 contributions
KovaxG
KovaxG3 contributions
kejace
kejace1 contribution
nsaunders
nsaunders1 contribution
sammthomson
sammthomson1 contribution
Softsapiens
Softsapiens1 contribution

Languages

View on GitHub →
PureScript54.5%
JavaScript25.4%
HTML18%
CSS2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 6 discussions · Last activity 6y ago
See all on GitHub →
nilp0inter
Why UI is not an instance of Monad?OpenIssue

I am new to PS, so please forgive me if I am asking a silly question. Given that is already an instance of with a candidate implementation for , namely innerFlare. Why is not a Monad instance?

nilp0inter · 5y ago
paulyoung
Try Flare link is brokenOpenIssue

The Try Flare link in the README still links to Try PureScript, but it doesn't load the flare backend. I realize this is probably more to do with Try PureScript no longer providing that backend, or perhaps this library needs to be updated or added to some package set, but I thought it was worth creating an issue here.

paulyoung · 6y ago

Recent fixes

View closed PRs →
nsaunders
Use appendChild() instead of append().MergedPR

After reading MDN's comparison of and , it seems clear that is sufficient for this use case, while is unsupported in Internet Explorer.

nsaunders · 6y ago
KovaxG
Support situations where the state depends on input and vice versaClosedIssue

I have been browsing around for creating user interfaces in purescript, and I think I like this library the most because of its simplicity, good job! I have run into a problem that I can't resolve on my own. I have a situation in which I have a past dependent state that is modified by the input. That is no problem except the state also influences what kinds of controls appear on the screen. That is the tricky part. For a concrete example, I want to make a program that visualizes a JSON file, by drawing shapes, and the shapes can be dragged around and stuff. This already works, I have used the signals from purescript-signal. However, I can't really do what I want. The only way I can think of doing it is by creating a channel for the state, subscribing and creating a signal, and combining it with the input signal, and using innerFlare to hide and make elements appear. I think this would work, but I would need to perform effects inside the function. I have found a function that would allow me to do what I want in Signal.Effect. It is called foldEffect, and it does exactly what I want. I could implement it, but I need to deconstruct the UI and Flare types. The implementation would be something like Will you accept a pull request with this new feature? If you know of a simpler way of doing what I want, please let me know. For a simpler example of my problem, consider the following simplified use case: You have a button that says "INC" and a number. If you press "INC" the number will increase. When the number hits 10, a new button will appear that says "RESET". If you press it the number will reset to 0, and the "RESET" button will disappear. Thanks

KovaxG · 6y ago
KovaxG
Added foldEffect from Signal that works on the UI typeMergedPR

This is needed for functionality described in this issue: https://github.com/sharkdp/purescript-flare/issues/33

KovaxG · 7y ago
Structured data for AI agents

Repository: sharkdp/purescript-flare. Description: A special-purpose UI library for Purescript Stars: 285, Forks: 15. Primary language: PureScript. Languages: PureScript (54.5%), JavaScript (25.4%), HTML (18%), CSS (2%). Topics: purescript, reactive, ui. Latest release: v4.1.0 (8y ago). Open PRs: 0, open issues: 6. Last activity: 6y ago. Community health: 28%. Top contributors: sharkdp, koterpillar, KovaxG, kejace, nsaunders, sammthomson, Softsapiens.

·@ofershap

Replace github.com with gitshow.dev