An improved version of stdlib's `pipes` module