Skip to content

Commit

Permalink
fix: pTraceShowWith should not call show twice
Browse files Browse the repository at this point in the history
  • Loading branch information
leoslf committed Dec 14, 2024
1 parent 95e9e27 commit 877b05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Debug/Pretty/Simple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pTraceWith f a = pTrace (f a) a
-- @since ?
{-# WARNING pTraceShowWith "'pTraceShowWith' remains in code" #-}
pTraceShowWith :: Show b => (a -> b) -> a -> a
pTraceShowWith f = (show . f) >>= pTraceShow
pTraceShowWith f = pTraceWith (show . f)

------------------------------------------
-- Helpers
Expand Down

0 comments on commit 877b05e

Please sign in to comment.