News for hackers. Stuff that matters.
Re:Haskell, Monads and Purity by gamegoblin on Saturday October 04, 2014 @01:50AM (#8408895)
Something I like to do is:

    import Debug.Trace
    wtf v x = trace (show x) v

    someFunction x = anotherFunction x `wtf` x
This allows me to tack `wtf` onto the end of otherwise unchanged expressions to do print debugging

There are no comments on this comment yet.