Skip to content

Commit

Permalink
Merge pull request #4 from glatteis/master
Browse files Browse the repository at this point in the history
only implement fail for old ghc version
  • Loading branch information
Brian Jones committed Jun 9, 2020
2 parents 4241ed7 + aa54092 commit 1a4526a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Ldap/Asn1/FromAsn1.hs
Expand Up @@ -412,7 +412,9 @@ instance Monad (Parser s) where
return x = Parser (\s -> return (s, x))
Parser mx >>= k =
Parser (mx >=> \(s', x) -> unParser (k x) s')
#if !__GLASGOW_HASKELL__ >= 86
fail _ = empty
#endif

instance MonadPlus (Parser s) where
mzero = Parser (\_ -> mzero)
Expand Down

0 comments on commit 1a4526a

Please sign in to comment.