Here `pred` shadows the function in Prelude, which is causing Travis to fail.  Rename it to `p` or something.