refactoring bfgminerhs.hs