Skip to content

Commit

Permalink
Frozen callstack for checkTextEnvelopeFormat function
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Apr 5, 2023
1 parent 27f8437 commit 1e24671
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 1e24671

Please sign in to comment.