Please describe the problem.

Started to happen recently (0924):

(git)smaug:/mnt/datasets/datalad/ci/git-annex/builds/2022/09[master]git
$> git grep -l 'Couldn.t match expected type '
cron-20220924/build-windows.yaml-788-e26581b6-failed/1_build-package (1).txt
cron-20220924/build-windows.yaml-788-e26581b6-failed/build-package/18_Build git-annex.txt
cron-20220925/build-windows.yaml-790-e26581b6-failed/1_build-package (1).txt
cron-20220925/build-windows.yaml-790-e26581b6-failed/build-package/18_Build git-annex.txt
cron-20220926/build-windows.yaml-791-40917e42-failed/1_build-package (1).txt
cron-20220926/build-windows.yaml-791-40917e42-failed/build-package/18_Build git-annex.txt
pr-133/build-windows.yaml-789-06e70ac7-failed/1_build-package (1).txt
pr-133/build-windows.yaml-789-06e70ac7-failed/build-package/18_Build git-annex.txt
Annex\PidLock.hs:130:48: error:
    * Couldn't match expected type `IO a' with actual type `Annex a'
    * In the second argument of `($)', namely `a r'
      In the expression: liftIO $ a r
      In an equation for runsGitAnnexChildProcessViaGit':
          runsGitAnnexChildProcessViaGit' r a = liftIO $ a r
    * Relevant bindings include
        a :: Repo -> Annex a (bound at Annex\PidLock.hs:130:35)
        runsGitAnnexChildProcessViaGit' :: Repo
                                           -> (Repo -> Annex a) -> Annex a
          (bound at Annex\PidLock.hs:130:1)
    |
130 | runsGitAnnexChildProcessViaGit' r a = liftIO $ a r

    |                                                ^^^


Warning: Failed to decode module interface:
         D:\a\git-annex\git-annex\.stack-work\dist\274b403a\build\git-annex\git-annex-tmp\Annex.hi
         Decoding failure: Invalid magic: e49ceb0f
...

fixed --Joey