How to implement reactive-banana behaviors that recursively depend on themself?
问题 I have a Behavior whose value I want to change based on the occurrence of an Event and the Behavior's current value. In the example below I have two counters that are updated based on whether a boolean behaviour is True or False. As it is this code crashes with a <<loop>> exception, but I'm unsure how to restructure it to work or how else to approach this problem. {-# LANGUAGE ScopedTypeVariables #-} import Reactive.Banana import Reactive.Banana.Frameworks import Control.Arrow import Control