[Haskell-beginners] Netwire loop

Ertugrul Söylemez es at ertes.de
Thu Nov 1 11:15:10 CET 2012


Nathan Hüsken <nathan.huesken at posteo.de> wrote:

> Hi,
> When testing this netwire sample program
>
> [...]
>
> mainWire :: WireP () Double
> mainWire = proc i -> do
>   rec
>     value <- integral_ 0.0 -< oldValue
>     oldValue <- delay 1.0 -< value
>   returnA -< value
>
> [...]
>
> I get this output:
> NetwireTest: <<loop>>
>
> But there should be not infinite loop, should there?

That was a bug in the ArrowLoop implementation.  It's fixed now in
version 4.0.1.  Thanks for reporting.


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/beginners/attachments/20121101/6c1d02d4/attachment.pgp>


More information about the Beginners mailing list