I'm just started to learn Haskell and my question may be a trivial one, so please sorry for disturb.

So, imagine I have a real infinite data source (stdin for instance) and I want to process data with use of parallel facilities of Repa or Accelerate. Both of them used arrays (finite data structures). It seems to me that will deal with sequence of arrays in my code, but I really don't know what to do then I need some data from one array and the next one to calculate something.