Rewrite asLineSource as simple transducer