[Caml-list] OCaml Users and Developers (OUD)

2012-05-14 Thread Didier Remy
Dear OCaml Users and Developers, This is a reminder that this year OCaml Meeting, renamed the OCaml Users and Developers workshop (OUD), will be colocated with ICFP in Copenhagen, Denmark on September 14th. The deadline for submitting Talk Proposals is 8th June 2012, only few weeks away.

[Caml-list] ask for help : how to increase coding efficiency of fun as below

2012-05-14 Thread xy s
We have defined types:   type position = {line : int; col : int };; type 'a ast = {data : 'a; kids : 'a ast list; posf : position; post: position};;     And then we transform string to ast:   let construct_common_ast s=     let len = String.length s in     let rec aux i j=   if ij then []  

[Caml-list] Any tool for unit tests as comments in OCaml source?

2012-05-14 Thread Francois Berenger
Hello, What's the gold standard in OCaml to have unit test as comments in source code in order for a tool to automatically extract them and generate a test suite? Thanks, F. -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list

Re: [Caml-list] Any tool for unit tests as comments in OCaml source?

2012-05-14 Thread Thibault Suzanne
Hi I don't know if it's a « gold standard », but Batteries uses qtest. The documentation (clear and concise in my opinion) can be found at http://batteries.vhugot.com/qtest/. Thibault Suzanne Le 15/05/2012 03:48, Francois Berenger a écrit : Hello, What's the gold standard in OCaml to have

Re: [Caml-list] Any tool for unit tests as comments in OCaml source?

2012-05-14 Thread Edgar Friendly
On 05/14/2012 09:48 PM, Francois Berenger wrote: Hello, What's the gold standard in OCaml to have unit test as comments in source code in order for a tool to automatically extract them and generate a test suite? Thanks, F. Batteries uses a program called qtest to do this; it's within the

[Caml-list] Any library for reading/writing compressed files?

2012-05-14 Thread Francois Berenger
Hello, What's the gold standard in OCaml to read/write compressed files? I found this: http://forge.ocamlcore.org/projects/camlzip/ Wouldn't it be possible that the Marshall module had an option to allow compression of the marshalled values? Or is there a simple way to achieve this? Thanks,

[Caml-list] Re: ask for help : how to increase coding efficiency of fun as below

2012-05-14 Thread Hongbo Zhang
Hi, google camlp4 and quotation. if you don't need antiquotation support, it's fairly easy. On 5/14/12 9:00 PM, xy s wrote: We have defined types: type position = {line : int; col : int };; type 'a ast = {data : 'a; kids : 'a ast list; posf : position; post: position};; And then we