repa-stream: rejig modules
stream: add ratchet function