Higher order version of the NFData class in the spirit of the prelude-extras package