1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00

Freeze the call stack in unError.

This commit is contained in:
Rob Rix 2017-08-06 15:58:06 -04:00
parent 367c16a0cd
commit 9d044c51f7

View File

@ -79,5 +79,5 @@ instance Show1 Error where liftShowsPrec = genericLiftShowsPrec
errorSyntax :: Error.Error String -> [a] -> Error a
errorSyntax Error.Error{..} = Error (getCallStack callStack) errorExpected errorActual
unError :: HasCallStack => Span -> Error a -> Error.Error String
unError span Error{..} = Error.withCallStack (fromCallSiteList errorCallStack) (Error.Error span errorExpected errorActual)
unError :: Span -> Error a -> Error.Error String
unError span Error{..} = Error.withCallStack (fromCallSiteList errorCallStack) (withFrozenCallStack (Error.Error span errorExpected errorActual))