[Haskell-cafe] Atom - help.
miaubiz at gmail.com
Fri Nov 27 00:52:22 EST 2009
would the way you implemented random in Unit.hs work here? an external
variable whose name is the function that returns input.
compass :: Atom (E Int16)
compass = int16' "readCompass()" >>= (return . value)
something <- int16' "something"
period 1 $ atom "navigate" $ do
heading <- compass
something <== heading
Tom Hawkins-2 wrote:
> The work around is to assign the result to an external variable. The
> drawback is the result will not be available until the rule executing
> the action has completed.
> results <- bool' "result" -- Global, external variable to capture
> action (\ [a, b, c] -> printf "result = function(%s, %s %s)" a b c) [a, b,
View this message in context: http://old.nabble.com/Atom---help.-tp24010994p26535883.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
More information about the Haskell-Cafe