Haskell and external C++ library - the easy way

Combining Haskell and a well-known C library is easy. apt-get/yum install, link with it, create bindings and we're done. Problems start to emerge when we don't want to, or can't, install the library globally. Things get even worse, when the library uses C++. I faced this problem when writing hlibsass and I think that I've managed to solve it in a not-so-terrible way.