3 ms·
Debug.trace is the module for you, my friend. Debug.trace a b = a and b gets logged to the console. Or maybe it's backwards. I forget.
by neutronicus 16y ago
Debug.trace is the module for you, my friend.
Debug.trace a b = a
and b gets logged to the console. Or maybe it's backwards. I forget.
- lsb 16y agoIt's the opposite way: Debug.Trace.trace :: String -> a -> a and if you don't like debug.trace, you can make your own, via unsafePerformIO! hackyDebugTrace s v = unsafePerformIO (putStrLn s >>= \_ -> return v)