Gentoo's Bugzilla –
Attachment 412656 Details for
Bug 561276dev-lang/ghc-7.8.4 - failed to update cache after relocation - usr/lib64/ghc-7.8.4/bin/ghc-pkg: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory