Enable building of hoogle database

Hi, I have noticed Hackage 2 does not build hoogle `.txt` files. This patch adds the functionality.