Making the library compile with GHC7.7