How to pass arguments to foreign export functions into a Pipe?

Viewed 150

I have a

foreign export stdcall tick :: Integer -> Float -> Float -> IO Int

On each invocation of this function, I wish to pass its arguments into a set of pipes from the haskell pipes library.

Between the invocations I don't want the pipes to forget the minimum and maximum of the arguments of the last 10 invocations.

How should I do this?

1 Answers
Related