mirror of
https://github.com/github/semantic.git
synced 2024-12-19 04:41:47 +03:00
Unfreeze notFollowedBy.
This commit is contained in:
parent
e32c566774
commit
e97b3e6fc6
@ -350,7 +350,7 @@ instance (Ix grammar, Show grammar) => Parsing (Assignment ast grammar) where
|
||||
eof = withFrozenCallStack $ End `Then` return
|
||||
|
||||
notFollowedBy :: (HasCallStack, Show a) => Assignment ast grammar a -> Assignment ast grammar ()
|
||||
notFollowedBy a = withFrozenCallStack $ a *> unexpected (show a) <|> pure ()
|
||||
notFollowedBy a = a *> unexpected (show a) <|> pure ()
|
||||
|
||||
instance MonadError (Error (Either String grammar)) (Assignment ast grammar) where
|
||||
throwError :: HasCallStack => Error (Either String grammar) -> Assignment ast grammar a
|
||||
|
Loading…
Reference in New Issue
Block a user