Questions tagged [sodiumfrp]
6 questions
9
votes
3 answers
Sampling a behaviour from outside network
Since sodium has been deprecated by the author I'm trying to port my code to reactive-banana. However, there seem to be some incongruencies between the two that I'm having a hard time overcomming.
For example, in sodium it was easy to retrieve the…

Philonous
- 91
- 5
6
votes
0 answers
ghcjs + sodium: no events after some time
UPDATE: there is a issue in ghcjs: https://github.com/ghcjs/ghcjs/issues/296
i play with ghcjs and sodium but after 3 seconds my application doesn't emit events anymore.
a minimal example:
a button: emit events
a counter behavior: counts the…

j-keck
- 1,021
- 1
- 7
- 13
5
votes
1 answer
Blackheath's "Functional reactive programming" book, 2.6.3 section clarification
Section speaks about a merge operation in FRP streams processing (Sodium library is used). Book shows a below diagram of streams combination, and says that when event enters FRP logic through a stream, it causes a cascade of state changes that…

Max
- 1,741
- 3
- 23
- 40
4
votes
1 answer
ReactFX compared to Sodium
This book about Sodium is a good and clear intro to FRP.
I expect that - because the book on Sodium is easy to understand - by comparing the two libraries (Sodium and ReactFX) people can leverage what they learn from the book and use that knowledge…

jhegedus
- 20,244
- 16
- 99
- 167
2
votes
1 answer
How to get the type of a term inside a do block in Leksah?
Question in video format : http://youtu.be/3_pvK-gcLMM
Question in text format : how can I get Leksah to tell me the type of unlisten in the code below ?
Code is taken from…

jhegedus
- 20,244
- 16
- 99
- 167
2
votes
1 answer
recursive update a "Behaviour" in Sodium yields 'thread blocked ...'
i would update a Behaviour (Cell / Val) from it's current value.
but the following code throws a thread blocked indefinitely in an MVar operation exception.
i have expected it prints three times 'value of i: '.
what did i missing? - thanks.
{-#…

j-keck
- 1,021
- 1
- 7
- 13