Added `RankNTypes` pragma

Perhaps it's just me, but I couldn't get it to type check without `RankNTypes`