Solutions to *The Cue Programming Challenge*, in reasonably clean Haskell