Tested with GHC 7.6.3.