reactive-banana Questions

1

Solved

I am building a mediaplayer-like application using reactive-banana. Let's say I want a Behavior that represents the currently selected track in the track list. I have two options: use fromPoll to...
Pentahedron asked 11/6, 2013 at 19:25

1

Solved

I'm at the point in my Traveller I'm trying to handle player-independent updates to the game state. For reference, the project is here (the devel branch is the relevant one for this question). Lib...
Statfarad asked 10/5, 2013 at 14:14

1

Solved

I have written a small application which tracks my progress in TV Series. The application is written in Haskell with functional reactive programming (FRP) with reactive banana. The application can...
Enright asked 10/5, 2013 at 13:6

1

Solved

I'm not sure whether this behavior is expected (i.e. I'm misusing Reactive.Banana.Switch) or a bug. Let's say I have two like-typed input Behaviors, and I want to switch between them based on an E...
Bipartisan asked 13/3, 2013 at 20:41

1

Solved

I am currently working on a small game utilizing reactive banana and SDL. Since the goal is mostly to learn more about reactive banana and FRP, I attempted to use dynamic switching to set up a coll...
Novellanovello asked 1/3, 2013 at 17:27

2

Solved

Most Haskell FRP frameworks like AFRP, Yampa and Reactive-banana make a difference between continuous time-varying functions and discrete ones. Usually they call them behaviors and events. One exc...
Odious asked 1/2, 2013 at 20:24

1

I am currently redesigning a piece of legacy wxHaskell using the reactive-banana and reactive-banana-wx packages. However, in order to avoid dynamic network construction (where I ran into a thread ...
Meredi asked 27/11, 2012 at 8:30

1

Solved

I am hunting for a library to write a GUI on top of GLFW and OpenGL. I'm doing this because I am dissatisfied with the common UI library bindings which I feel are too imperative, and I would also l...
Mckinzie asked 4/11, 2012 at 1:41

1

Solved

This is a sub-problem from my Traveller project. I've put together the rudementary code that will handle input. It works, until I introduce a TChan to the mix. Below is the working code, with an e...
Hackle asked 16/10, 2012 at 16:20

1

Solved

This question is specific to reactive-banana and real-time simulations with a physical and visual component (eg., games). According to Fix Your Timestep! the ideal way to setup a game loop (assumi...
Vagrom asked 2/10, 2012 at 6:24

1

Solved

This problem is a continuation of what I started here. I'm using the asteroid example as a model to work from. The problem I want to talk about here is the one of a timer. The asteroids example us...
Igal asked 27/9, 2012 at 16:29

1

Solved

I'm in the process of teaching myself FRP and Reactive-banana while writing what I hope will be a more useful tutorial for those that follow me. You can check out my progress on the tutorial here. ...
Calx asked 20/9, 2012 at 20:15

3

Solved

I have looked at a number answers to questions here on Stack Overflow trying to find a solution to my problem in using the Reactive Banana library. All the answers use some magic using 'mapAccum' t...
Ligurian asked 8/9, 2012 at 1:54

2

Solved

Setup: I am using Reactive Banana along with OpenGL and I have a gear that I want to spin. I have the following signals: bTime :: Behavior t Int -- the time in ms from start of rendering bAngular...
Torosian asked 8/9, 2012 at 2:15

1

Solved

I want to use reactive-banana to write a traveller game that people can write bots for. FRP is completely new to me, and I'm having trouble making a start. I created a more elaborate Graph, when I ...
Microcurie asked 6/9, 2012 at 4:20

2

Solved

I want to use FRP (i.e., reactive banana 0.6.0.0) for my project (a GDB/MI front-end). But I have troubles declaring the event network. There are commands from the GUI and there are stop events fr...
Multivalent asked 2/8, 2012 at 13:45

1

Solved

I am new to reactive banana and FRP in general, so apologies if I am missing something obvious. For my project (a GDB/MI front-end) I am using reactive banana (version 0.6.0.0) for both the GUI an...
Alsoran asked 31/7, 2012 at 14:37

1

Solved

I'm writing a music player in Haskell with reactive-banana. One problem I have is fetching up-to-date values with fromPoll. I want to enable the user to optionally select a part of the track while ...
Hepler asked 28/5, 2012 at 16:44

1

Solved

I tested this and it seems that the order of event handling is the same as the order of the list in the source event. I don't think I can rely on this as the documentation only states: Emit simu...
Foul asked 10/4, 2012 at 1:16

2

Solved

I'm just starting to look into the world of Functional Reactive Programming in Haskell, and I would like to experiment with GUI programming (with gtk, because of substantial binding) in a rea...
Terni asked 3/4, 2012 at 19:31

2

Solved

In reactive-banana I've got an event stream that produces a series of numbers, some of which repeat several times in a row (I'm not concerned with all duplicates, just sequential duplicates). How c...
Xylotomy asked 3/4, 2012 at 15:20

1

Solved

I'm learning reactive-banana and intending to use it in a server-side app. I have some background in RxJs, so I'm used to combining Events with different combinators there. So I started with simple...
Kappel asked 11/1, 2012 at 21:33

1

Solved

I'm currently trying to get to know FRP through Heinrich Apfelmus' reactive-banana, which seems to be a quite well documented and simple library, compared to the other ones I've looked at. However...
Wednesday asked 25/12, 2011 at 22:6

1

Solved

Suppose I have an event trigger which I want to do two things when fired. First, I want it to update the value of some behavior. Second, if other conditions are met, I want it to fire another event...
Lolalolande asked 23/12, 2011 at 16:2

1

Solved

We have code like this: guiState :: Discrete GuiState guiState = stepperD (GuiState []) $ union (mkGuiState <$> changes model) evtAutoLayout evtAutoLayout :: Event GuiState evtAutoLayo...
Bedabble asked 21/10, 2011 at 13:53

© 2022 - 2024 — McMap. All rights reserved.