How can I move the GHC and cabal installed packages to a different user? I've copied the directories but I'm getting error messages like:
ConfigParser.hs:15:8:
Could not find module `Data.ByteString.Char8'
There are files missing in the `bytestring-0.10.2.0' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
ghc-pkg check
shows that any file for any package is missing. How can I resolve this?
Note: This question intentionally does not show research effort, because it was answered Q&A-style.