I am trying to do some OpenGL programming in haskell. But i am confused by the current state of the libraries. OpenGL uses the Tensor package which only defines several vector types (but doesn't do so in a generic way). It doesn't seem to provide any Matrix implementations.
There are several other packages for linear algebra: tensor (note the lowercase T), Vec, hmatrix which seem to be more complete than Tensor.
What i am searching for should at least contain common functions used in 3d and 2d graphics, have reasonable performance and should be compatible with OpenGL but i guess i'll have to change the library for that.
instance Matrix Mat4 where ... inverse = error "inverse/Mat4: not implemented yet"
. That's not very useful... – Karolis Juodelė