From 096ec2adb209b1e2bbe7db3a702a0c69664a1e88 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sun, 31 May 2020 00:39:17 -0400 Subject: Fixed compilation errors in bin --- bin/dune | 2 +- bin/leda.ml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/dune b/bin/dune index ddff424..e161175 100644 --- a/bin/dune +++ b/bin/dune @@ -1,4 +1,4 @@ (executable (public_name leda) - (name main) + (name leda) (libraries base gemini)) diff --git a/bin/leda.ml b/bin/leda.ml index 139f5fe..07fe43c 100644 --- a/bin/leda.ml +++ b/bin/leda.ml @@ -1,10 +1,10 @@ -module M = Gemini.MimeTextGemini +module M = Gemini.MimeTextGemini.MimeTextGemini -let test_gemini = "\ - => /blah mylink\r\n\ +let test_gemini = "=> /blah mylink\r\n\ => /blah\r\n\ ```\r\n\ - preformatted\r\n\ + preformatted 1\r\n\ + preformatted 2\r\n\ ``` ending preformatted text\r\n\ some text\r\n\ more text\r\n\ @@ -15,6 +15,6 @@ let _ = print_endline test_gemini let _ = print_endline "\n\n...gets parsed as...\n\n" -let test_parse s = s (* M.gemini_to_str (M.str_to_gemini s) *) +let test_parse s = M.gemini_to_canon_str (M.str_to_gemini s) -let _ = print_endline (test_parse test_gemini) +let main = print_endline (test_parse test_gemini) -- cgit v1.2.3