a minor correction in doc-string of ‘setErrorMessage’

This commit is contained in:
mrkkrp 2015-08-08 15:53:40 +06:00
parent ebc1fae39c
commit fcf1b972e8

View File

@ -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)