Enable building of haddock text file for hoogle

Hi, this patch enables building of haddock text file to use with hoogle