Adding type signature so it compiles with GHC7.7