It might also help to modify or remove the default package environment ~/.ghc/x86_64-...-8.10.7/environments/default
and avoid running cabal install --lib
, because you will run into these kinds of issues if you do.
Also, cabal install primitive
doesn’t really make sense, because primitive
doesn’t contain any executables and cabal install
is only for executables. If you want to use primitive as a dependency I would recommend making a proper cabal package.