You’re correct that Mercury uses Haskell for its backend: https://serokell.io/blog/haskell-in-production-mercury
I think they were using Agda or something too for a while, but it appears I can't find what I'm thinking of on their site anymore. Really interesting guys if you're located in the Baltic states.