File: trace.md

package info (click to toggle)
ocaml-eio 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,548 kB
  • sloc: ml: 14,608; ansic: 1,237; makefile: 25
file content (14 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
```ocaml
# #require "eio_main";;
# open Eio.Std;;
# Eio_main.run @@ fun _env ->
  traceln "One-line trace";
  traceln "@[<v2>A nested list@,Foo@,Bar@]";
  traceln "Trace with position" ~__POS__:("trace.md", 5, 1, 10);;
+One-line trace
+A nested list
+  Foo
+  Bar
+Trace with position [trace.md:5]
- : unit = ()
```