pipe: make Pipe to instance of Functor and Applicative