wxHaskell/wxHaskell — pull request #2 by myme (2014-04-25 14:10:17+00:00)
Title: Use the same custom hook for `cabal copy`

It seems like `cabal` uses `copy` rather than `install` when installing
inside of a sandbox from a package linked in using `add-source`. This
means that `myInstHook` is never called when running
`cabal install wxc` inside of a sandbox and so the shared library is
not properly copied over to the sandbox's wxc lib folder.

I found #56 over at sourceforge and think that this (or some modification of it) will do the trick: https://sourceforge.net/p/wxhaskell/bugs/56/