Pull out the item writing parts into pure functions, generalise and simplify
Pull out the item writing parts into pure functions, generalise and simplify

wolftune/hoogle,wolftune/hoogle,wolftune/hoogle,BartAdv/hoogle,ndmitchell/hoogle,ndmitchell/hoogle,wolftune/hoogle,ndmitchell/hogle-dead,ndmitchell/hoogle,BartAdv/hoogle,BartAdv/hoogle,ndmitchell/hogle-dead,BartAdv/hoogle