If you get the following error while running cabal install network in the Windows console
Configuring network-2.6.2.0…
setup.exe: The package has a ‘./configure’ script. This requires a Unix
compatibility toolchain such as MinGW+MSYS or Cygwin.
cabal.exe: Error: some packages failed to install:
network-2.6.2.0 failed during the configure step. The exception was:
ExitFailure 1
install or switch to MINGW32 Unix command line emulator for Windows and everything will run without a hitch.