There are problems in package testpkg-2.0: Warning: library-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory Warning: include-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory import-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. import-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory library-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. include-dirs: /usr/local/include/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. cannot find any of ["A.hi","A.p_hi","A.dyn_hi"] cannot find any of ["B.hi","B.p_hi","B.dyn_hi"] cannot find any of ["C\\D.hi","C\\D.p_hi","C\\D.dyn_hi"] cannot find any of ["C\\E.hi","C\\E.p_hi","C\\E.dyn_hi"] cannot find any of ["libtestpkg-2.0-XXX.a","libtestpkg-2.0-XXX_p.a","libtestpkg-2.0-XXX-ghc7.11.20151217.so","libtestpkg-2.0-XXX-ghc7.11.20151217.dylib","testpkg-2.0-XXX-ghc7.11.20151217.dll"] on library path The following packages are broken, either because they have a problem listed above, or because they depend on a broken package. testpkg-2.0 testpkg-3.0 ghc-pkg.exe: unregistering would break the following packages: testpkg-3.0 (use --force to override)