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

Fix for GHC 7.8