Looking for help with build on Windows

There’s an error when I try to link a static library produced by Rust with a Haskell program on Windows (I think it’s version 11 already, will provide more precise details as needed). It’s either symbols not found or duplicate symbols. As far as I was able to research the problem, it might be related to UCRT support in Haskell. Rust added UCRT support quite awhile ago. And as I read in the issues on GHC gitlab, UCRT is supported by GHC too. For example, here:

The issue with more details and some logs is here:

And there’s a small repo if you want a quick way to reproduce the build error:

Any help is welcome, as this issue seems to be beyond my powers to solve.