I had a similar issue when tried to install on Windows some packages that depend on the old-time package. I don’t remember all the details, but I installed MSYS and some its modules additionally. Then my issue had gone. There are also MSYS2 and Cygwin that can be used instead of MSYS. I would try to experiment with MSYS2.
Earlier the old-time package was included in the Haskell platform and all my installations went smooth on Windows. But recently, the old-time package was removed from the Haskell platform and it caused some issues on clean Windows, for some packages still depend on that package explicitly or implicitly.