Don't use graphicsFormats, which isn't on Hackage.  Use Tensor for Vector2.
Changes to compile with old version of OpenGL