I am very new to Haskell and have searched high and low for help with this but I can\'t seem to be able to get it to work. This is a homework assignment but