Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frozen callstack for checkTextEnvelopeFormat function #5059

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cardano-cli/test/Test/OptParse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ checkTextEnvelopeFormat
-> FilePath
-> FilePath
-> m ()
checkTextEnvelopeFormat tve reference created = do
checkTextEnvelopeFormat tve reference created = GHC.withFrozenCallStack $ do
eRefTextEnvelope <- liftIO $ readTextEnvelopeOfTypeFromFile tve reference
refTextEnvelope <- handleTextEnvelope eRefTextEnvelope

Expand All @@ -59,9 +59,9 @@ checkTextEnvelopeFormat tve reference created = do
handleTextEnvelope (Right refTextEnvelope) = return refTextEnvelope
handleTextEnvelope (Left fileErr) = failWithCustom GHC.callStack Nothing . displayError $ fileErr

typeTitleEquivalence :: MonadTest m => TextEnvelope -> TextEnvelope -> m ()
typeTitleEquivalence :: (MonadTest m, HasCallStack) => TextEnvelope -> TextEnvelope -> m ()
typeTitleEquivalence (TextEnvelope refType refTitle _)
(TextEnvelope createdType createdTitle _) = do
(TextEnvelope createdType createdTitle _) = GHC.withFrozenCallStack $ do
equivalence refType createdType
equivalence refTitle createdTitle

Expand Down