ParentFull threadT-R·Surprised no one's brought up Haskell's Debug.Trace, which effectively does this, but returning whichever value you tell it to.View on HN