Modified Hhp.hs to replace deprecated functions.