netwire, <<loop>> with accum1

Hey, I have another <<loop>> with netwire. This is the minimal example I got it down to: {-# LANGUAGE Arrows #-} import Control.Wire mainWire :: WireP () Double mainWire = proc _ -> do rec out <- accum1 (+) 0 -< oldOut oldOut <- delay 0 -< out returnA -< out main = wireLoop mainWire wireLoop :: WireP () Double -> IO () wireLoop w' = do let (mx, w) = stepWireP w' 1.0 () putStrLn $ show mx wireLoop w Output: <<loop>> I am aware, in this context I could just use accum. I triggered the error where I changed integral_ and accum1. By the way, is it apropriate, that I always write these "netwire bug reports" over this list? Regards, Nathan

Nathan Hüsken
I have another <<loop>> with netwire. This is the minimal example I got it down to:
[...]
I am aware, in this context I could just use accum. I triggered the error where I changed integral_ and accum1.
Fixed and released.
By the way, is it apropriate, that I always write these "netwire bug reports" over this list?
I'd say it's the wrong list. If anything, -cafe would be more appropriate. To answer your question, it doesn't bother me. As I don't currently have a bug tracker, it's probably fine to use a mailing list, but feel free to mail me directly, if you feel that you're being too noisy. =) I'm happy about your reports. Netwire wouldn't be what it is without all the feedback, so i'm grateful. =) Greets, Ertugrul -- Not to be or to be and (not to be or to be and (not to be or to be and (not to be or to be and ... that is the list monad.
participants (2)
-
Ertugrul Söylemez
-
Nathan Hüsken