Theoretically you only have to exec cabal install at the directory where setup.hs is located.  It is not necessary neither cygwin neither mingw
I guess