I though it might work without it, but I get the error I mentioned:

cabal: Error: some packages failed to install:
network-2.3.0.10 failed during the configure step. The exception was:
ExitFailure 1

Well, I'll try with msys. Thanks for your time!