I’ve got something basic working, but it took me a while to figure out how to get everything to link properly. I’m not familiar with any of the intricacies of cabal, so I ended up modifying the Makefile. Even then, I’ve got little idea of what GHC is doing behind the scenes, so some of what I had to do to get this working is still spooky to me. I did spend a fair bit of time trying to get this working with cabal, but I’ve given up at this point; help would be appreciated.
As an aside, this is pretty clearly off-topic at this point. @l-Shane-l, I could start a new thread next time, if you don’t mind. If you’d rather write the OP, would you mind starting it soon?