My latest attempt at installing and using cabal on Windows:
Installation via choco fails.
C:\WINDOWS\system32>choco install ghc --version 8.10.7
Chocolatey v0.11.2
Installing the following packages:
ghc
By installing, you accept licenses for the packages.