Mutually dependant signals
Bare question: Is there a way of defining a pair of signals that depend on each other in Elm? Preamble: I'm trying to write a tiny Cookie-clicker-style browser game in which the player is gathering resources, then spending them to purchase autonomous resource-gathering constructs which get more expensive as they're purchased. That implies three relevant signals: gathered (how much resources the player has gathered), spent (how much resource the player has already spent) and cost (how much an upgrade costs). Here's an implementation: module Test where import Mouse import Time port gather :