Haskell: steps 4-6. Line editing. Simpler fn calls.