isRight for ghc 7.6.3