Add Debug.Trace
commit2f26fb2d8c4148ce0589949d1d3b2a50aeeb79da
authorEdwin Brady <ecb10@st-andrews.ac.uk>
dateSat 1 Dec 2012, 11:25 (14 years ago)
parent0c8d6e7
lib/Debug/Trace.idrnew file+8
@@ -0,0 +1,8 @@
1+module Debug.Trace
2+
3+import IO
4+
5+trace : String -> a -> a
6+trace x val = unsafePerformIO (do putStrLn x; return val)
7+
8+
lib/base.ipkg+1
@@ -9,6 +9,7 @@ modules = Builtins, Prelude, IO, System,
99 Prelude.Heap, Prelude.Complex, Prelude.Functor,
1010
1111 Network.Cgi,
12+ Debug.Trace,
1213
1314 System.Concurrency.Raw, System.Concurrency.Process,
1415