2008-01-13 20:53:15 +03:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
-- |
|
|
|
|
-- Module : Text.ParserCombinators.Parsec.Error
|
|
|
|
-- Copyright : (c) Paolo Martini 2007
|
|
|
|
-- License : BSD-style (see the LICENSE file)
|
|
|
|
--
|
2008-02-02 07:52:12 +03:00
|
|
|
-- Maintainer : derek.a.elkins@gmail.com
|
2008-01-13 20:53:15 +03:00
|
|
|
-- Stability : provisional
|
|
|
|
-- Portability : portable
|
|
|
|
--
|
|
|
|
-- Parsec compatibility module
|
|
|
|
--
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
module Text.ParserCombinators.Parsec.Error
|
2008-02-17 06:53:24 +03:00
|
|
|
( Message (SysUnExpect,UnExpect,Expect,Message),
|
|
|
|
messageString,
|
|
|
|
messageCompare,
|
|
|
|
messageEq,
|
|
|
|
ParseError,
|
|
|
|
errorPos,
|
|
|
|
errorMessages,
|
|
|
|
errorIsUnknown,
|
|
|
|
showErrorMessages,
|
|
|
|
newErrorMessage,
|
|
|
|
newErrorUnknown,
|
|
|
|
addErrorMessage,
|
|
|
|
setErrorPos,
|
|
|
|
setErrorMessage,
|
|
|
|
mergeError
|
2008-01-13 20:53:15 +03:00
|
|
|
) where
|
|
|
|
|
|
|
|
import Text.Parsec.Error
|
2008-02-17 06:53:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
messageCompare :: Message -> Message -> Ordering
|
|
|
|
messageCompare = compare
|
|
|
|
|
|
|
|
messageEq :: Message -> Message -> Bool
|
|
|
|
messageEq = (==)
|