I am trying to run a haskelldb-demo
cabal sandbox init && cabal install --only-dependencies
It needs HDBC-postgresql-2.2.3.1 which needs base package version as base>=3 && <4.5. My system has base pkg versioned 4.7+.
I am using cabal sandbox but cabal install still refers to the base (v4.7.0.2)package from the global repository and rejects all versions of HDBC-postgresql
rejecting: HDBC-postgresql-2.2.3.1 (conflict: base==4.7.0.2/installed-bfd...,
HDBC-postgresql => base>=3 && <4.5)
why does cabal refer to the system level packages, inspite me making a sandbox?