Use interact to simplify Haskell code.