ghcJS installation fails

I am trying to install ghcJS but its failing on “cabal install ./ghcjs” with :
Warning: --root-cmd is no longer supported, see
https://github.com/haskell/cabal/issues/3353 (if you didn’t type --root-cmd,
comment out root-cmd in your ~/.cabal/config file)
Resolving dependencies…
cabal: Could not resolve dependencies:
trying: ghcjs-0.2.1:-compiler-only
trying: network-2.6.3.2/installed-Elf… (dependency of
ghcjs-0.2.1:-compiler-only)
next goal: unix (dependency of network-2.6.3.2/installed-Elf…)
rejecting: unix-2.7.2.2/installed-2.7… (conflict: unix =>
time==1.8.0.2/installed-1.8…, ghcjs-0.2.1:compiler-only => time>=1.4 &&
<1.7)
rejecting: unix-2.7.2.2, unix-2.7.2.1, unix-2.7.2.0, unix-2.7.1.0,
unix-2.7.0.1, unix-2.7.0.0, unix-2.6.0.1, unix-2.6.0.0, unix-2.5.1.1,
unix-2.5.1.0, unix-2.5.0.0, unix-2.4.2.0, unix-2.4.1.0, unix-2.4.0.2,
unix-2.4.0.1, unix-2.4.0.0, unix-2.3.2.0, unix-2.3.1.0, unix-2.3.0.0,
unix-2.2.0.0, unix-2.0 (conflict: network => unix==2.7.2.2/installed-2.7…)
After searching the rest of the dependency tree exhaustively, these were the
goals I’ve had most trouble fulfilling: base, haskell-src-meta, ghcjs

a bit clueless as to what is causing this. any one got any hints here?