Skip to content
Snippets Groups Projects
Unverified Commit c53acf52 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Merge pull request #8784 from ffaf1/add-trace

Add traceM and traceShowM
parents fdcf77b2 d9522b89
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ module Distribution.Compat.Prelude (
readMaybe,
-- * Debug.Trace (as deprecated functions)
trace, traceShow, traceShowId,
trace, traceShow, traceShowId, traceM, traceShowM
) where
-- We also could hide few partial function
......@@ -286,3 +286,11 @@ traceShowId x = Debug.Trace.traceShow x x
traceShow :: Show a => a -> b -> b
traceShow = Debug.Trace.traceShow
{-# DEPRECATED traceShow "Don't leave me in the code" #-}
traceM :: Applicative f => String -> f ()
traceM = Debug.Trace.traceM
{-# DEPRECATED traceM "Don't leave me in the code" #-}
traceShowM :: (Show a, Applicative f) => a -> f ()
traceShowM = Debug.Trace.traceShowM
{-# DEPRECATED traceShowM "Don't leave me in the code" #-}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment