File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ nothingFail r = GHC.withFrozenCallStack $ case r of
307
307
308
308
-- | Fail when the computed result is Nothing.
309
309
nothingFailM :: (MonadTest m , HasCallStack ) => m (Maybe a ) -> m a
310
- nothingFailM f = f >>= nothingFail
310
+ nothingFailM f = GHC. withFrozenCallStack $ f >>= nothingFail
311
311
312
312
-- | Fail when the result is Left.
313
313
leftFail :: (MonadTest m , Show e , HasCallStack ) => Either e a -> m a
@@ -317,7 +317,7 @@ leftFail r = GHC.withFrozenCallStack $ case r of
317
317
318
318
-- | Fail when the computed result is Left.
319
319
leftFailM :: (MonadTest m , Show e , HasCallStack ) => m (Either e a ) -> m a
320
- leftFailM f = f >>= leftFail
320
+ leftFailM f = GHC. withFrozenCallStack $ f >>= leftFail
321
321
322
322
maybeAt :: Int -> [a ] -> Maybe a
323
323
maybeAt n xs
@@ -361,7 +361,7 @@ jsonErrorFail r = GHC.withFrozenCallStack $ case r of
361
361
362
362
-- | Fail when the computed result is Error.
363
363
jsonErrorFailM :: (MonadTest m , HasCallStack ) => m (Result a ) -> m a
364
- jsonErrorFailM f = f >>= jsonErrorFail
364
+ jsonErrorFailM f = GHC. withFrozenCallStack $ f >>= jsonErrorFail
365
365
366
366
-- | Run the operation 'f' once a second until it returns 'True' or the deadline expires.
367
367
--
You can’t perform that action at this time.
0 commit comments