Win32-network preventing cabal build of caradano-node

Any idea what could cause this win32-network problem on a debian 10 KVM ?

Warning: Requested index-state2020-07-15T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2020-07-14T22:50:55Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: Win32-network-0.1.0.0 (user goal)
[__1] next goal: base (dependency of Win32-network)
[__1] rejecting: base-4.14.0.0/installed-4.14.0.0 (conflict: Win32-network =>
base>=4.5 && <4.13)
[__1] skipping: base-4.14.0.0, base-4.13.0.0 (has the same characteristics
that caused the previous version to fail: excluded by constraint '>=4.5 &&
<4.13' from 'Win32-network')
[__1] rejecting: base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__1] fail (backjumping, conflict set: Win32-network, base)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, Win32-network

Solution: ghcup

It’s probably my ghc version. I used the latest (8.10.1) when cardano-node needs 8.6.5
Unfortunately this version is not readily present for debian 10. I may have to compile the ghc or try the nix approach.

… (latter edit)… the best solution is to use ghcup to handle concurent ghc version.
from iohk’s docs

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Then use ghcup to install ghc 8.6.5 on debian 10. In the end, It will simply install the deb9 version of ghc 8.6.5, and it works.