shithub: MicroHs

Download patch

ref: 8ee8533bdbf2cb19c7a30fe7c42937fdaafccd52
parent: 99f85b632239fbd05c03d4077bfd6185e428cb97
author: Lennart Augustsson <lennart@augustsson.net>
date: Sun Nov 5 11:41:29 EST 2023

Add traceM

--- a/lib/Debug/Trace.hs
+++ b/lib/Debug/Trace.hs
@@ -8,3 +8,6 @@
     putStrLn msg
     return a
   )
+
+traceM :: forall (m :: Type -> Type) a . Monad m => String -> m ()
+traceM s = trace s (return ())
--