Resolve ghc 7.8 issue

fixes #2