3 ms·
It'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! hackyDebugTra
by lsb 16y ago
It'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)