
then I just need to do a forever loop and use this type data to keep the C internal state.
what's worring me is that I have a sort of internal state but this is not expressed anywhere in the type system...
You can use (StateT
I get a segfault when I do a big number of coputation ???
The only change is from Pipes.print to Pipes.drain? This is weird, maybe you'd have better luck asking on Pipes mailing list: https://groups.google.com/forum/?fromgroups#!forum/haskell-pipes ( mailto:haskell-pipes@googlegroups.com ) Best regards, Marcin Mrotek