Skip to content

Commit

Permalink
Merge pull request #132 from leoslf/master
Browse files Browse the repository at this point in the history
fix: pTraceShowWith should not call show twice
  • Loading branch information
cdepillabout authored Dec 16, 2024
2 parents 95e9e27 + 877b05e commit 10a64d3
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 10a64d3

Please sign in to comment.