[Haskell-cafe] Netwire woes: creating a wire with mkGen_

Ertugrul Söylemez esz at posteo.de
Fri Dec 30 16:16:21 UTC 2016


Hi,

> tl;dr: I want to create a wire which outputs a stream of 'q's when the
> letter Q is pressed and a stream of 'a' when the letter A is pressed.
> What I wrote is not working and I suspect I am not using mkGen_
> correctly.

could you show us the source code of your event wires?  I suspect that
this is not a Netwire issue at all, but an issue of one of the event
wires draining the MVar, so the other one never actually sees a full
MVar.


Greets,
ertes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161230/693f9b55/attachment.sig>


More information about the Haskell-Cafe mailing list