is not a very helpful message, especially as GHC can't be bothered to pinpoint exactly where the error occurred. In this particular case, "Missing type variable in instance context" might be more helpful.