I often install a package which depends on external libraries and manage to move those external libraries to other locations afterwards, so that compiled programs exit with a loader error.
In those cases I just want stack to rebuild an already installed package, but I don't see how that is possible. stack install --force-dirty
doesn't seem to work, as it just tries to rebuild the project in the current working directory.
Recent example:
I'd liked to see whether regex-pcre
requires a C library not present on Windows systems, so I hit stack install regex-pcre
. That went fine, but then I realized I installed mingw-w64-x86_64-pcre
via stack
s pacman
prior to this. I removed it again via pacman -R
and tried to run stack install regex-pcre
again, which did not rebuild it. Neither did adding --force-dirty
work for the above reason.