Fix for GHC 7.8
Merge pull request #4 from hamishmack/master

Fix for GHC 7.8