-- how about this?

-- NEXT

-- Most haskell code doesn't have so many parentheses. Instead, it uses the $ operator like so:

output1' = unlines $ sort $ lines input
output1' = unlines $ sort $ lines input
output1' = unlines $ sort $ lines input