Thank you, Daniel. That did the trick, and thanks to your explanation, I have a much better understanding of the syntax. In case anyone else has a similar problem, I also had to add the FlexibleInstances pragma.