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?