GHC 7.8: SampleVar doesn't exist here

SampleVar got removed in base 4.7.0 (which comes with GHC 7.8). This pull requests just skips the tests for SampleVar if base is greater than 4.7.0.