mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2025-01-05 15:17:53 +03:00
a minor correction in doc-string of ‘setErrorMessage’
This commit is contained in:
parent
ebc1fae39c
commit
fcf1b972e8
@ -139,8 +139,8 @@ addErrorMessage m (ParseError pos ms) = ParseError pos (pre ++ [m] ++ post)
|
||||
post = filter (> m) ms
|
||||
|
||||
-- | @setErrorMessage m err@ returns @err@ with message @m@ added. This
|
||||
-- function also deletes all already existing error messages that were
|
||||
-- created with the same constructor of @m@.
|
||||
-- function also deletes all existing error messages that were created with
|
||||
-- the same constructor as @m@.
|
||||
|
||||
setErrorMessage :: Message -> ParseError -> ParseError
|
||||
setErrorMessage m (ParseError pos ms) = ParseError pos (m:xs)
|
||||
|
Loading…
Reference in New Issue
Block a user