Conversation
|
In principle this is a good idea, but I would rather avoid copying the Tensor code one more time: https://hackage.haskell.org/package/Tensor already contains the relevant stuff (or at least it should, I haven't looked into it for a long time), so one could conditionally re-export that instead of the the new copy. It is rather unfortunate that there are already 2 copies (1 in OpenGL, 1 in Tensor), but I had quite a few discussions about that in the distant past, and that is what we settled for. |
Use types from Tensor package as a replacement.
|
Sure, I've updated the patch. |
|
Is there anything left to fix? |
Nope, I just need some time to test this locally, "real life" is currently interfering a bit... |
|
🎵 🎵 🎵 |
|
BTW, there is an example in a package that can switch between Tensor version and OpenGL: https://gitlab.com/dpwiz/opusfile |
|
Please merge? I need this flag on Hackage so I can use it in snapshots. |
I work with Vulkan graphics but want to use OpenAL for audio.
Bringing the whole of OpenGL with its code and library dependencies is too much when they aren't your transitives already.
Another (better) alternative would be extracting those types into OpenGL-tensor package or something and share between the two.