Questions tagged [yampa]

Questions about Yampa, an FRP library for Haskell.

19 questions
1
vote
0 answers

Starting signal function with an event. Haskell - Euterpea

I'm developing FRP application using Euterpea and got major problem in understanding how to do this one thing. I got my own Signal function that I want to trigger when specific event occurs. Now my SigFun is just running from the start of the…
Lovaz
  • 227
  • 1
  • 7
1
vote
1 answer

Getting key input with Yampa and yampa-glut

The entire topic of AFRP sounds very exciting, and I am trying to start my own project in it. I found Yampa and yampa-glut, which seems to be a good binding to GLUT (As it seems, GLUT is the only graphics lib that runs on both, Windows and…
Lanbo
  • 15,118
  • 16
  • 70
  • 147
0
votes
1 answer

How to let a random amount of time pass with Yampa

I'm trying to write a simple FRP sample with Yampa that instead of waiting for 2 seconds (like here: https://wiki.haskell.org/Yampa/reactimate) will wait for a random amount of time within some bounds. I have tried multiple different approaches to…
0
votes
1 answer

Yampa value switch

I have an event SF Input (Event ()) that represents the key-up of the space key. I have some gravity and every time the user releases the key, it must switch between 1 and (-1). So I did this: gravity <- accumHold 1 <<< (arr $ tag (*(-1))) <<< keyUp…
Lanbo
  • 15,118
  • 16
  • 70
  • 147
1
2