last day (15 days later) » 

8:54 PM
1
Q: Reactive Banana: how to use values from a remote API and merge them in the event stream

Randomize I am using Reactive-Banana in a WX interface. I need to retrieve a value from an external service API when a button is pressed. I have a generic Behavior based on the data type AppState that “accums” the transformed changes based on a function transformation (doSomeTransformation). The values ...

 
how about if you provided a self contained reproduction of the problem? an FP Complete project perhaps, or at least a full self contained source code.
 
One of the things I am trying to understand about Haskell and fp in general is if it is sometimes enough giving functions signatures to describe the problem itself. Anyway I will try to write something in fpcomplete.
 
Enough to describe the problem is not the same as enough to reproduce and play with the problem in a sandbox.
 
I have created a project on fpcomplete although I cannot get the cabal conf to work
hmm it looks it is just this: accumB initialState $ doSomeTransformation <$ (remoteValueB <@ myButton)
 
So did you resolve this? If yes, be sure to post it as an answer not just comment.
 
8:54 PM
No, it didn't solve. If it compiles doesn't meant it work.
 
I'm not seeing any .hs files in that FPComplete project
 
9:08 PM
strange - I can see it maybe needs some export
and this is the cabal conf in case: pastebin.com/HdY2wj2M
 

  last day (15 days later) »