[Caml-list] Ocsigen and forms

2010-11-13 Thread Till Crueger
Hi, I am still trying to get my head around Ocsigen and Eliom. The links I got last time helped a lot to figure out how to build webservices with ocsigen. However there are still many occasions, when I get stuck. Right now I am trying to build a page with a form, that sends the user to a

[Caml-list] Help with Elliom syntax

2010-11-04 Thread Till Crueger
Hi, I am still trying to find my way with Elliom and Ocsigen. Right now I can use OCaml to generate the pages I want, but I still have problems to figure out how to encode the XHTML. The main question I have is how to assign attributes to elements, like div blocks or others. I found the

Re: [Caml-list] Re: Help with Elliom syntax

2010-11-04 Thread Till Crueger
On Thu, 04 Nov 2010 13:31:35 +0100, Sylvain Le Gall sylv...@le-gall.net wrote: Most of the time you have an ~a parameter. Example: div ~a:[a_class [statistics]] [ h2 [pcdata Statistics]; ... ] Thanks for the help again. Is there a place where such things are documented? Because I was not

[Caml-list] Howto link cmas with Ocamlbuild

2010-10-28 Thread Till Crueger
Hi, I am working on a small project that is going to include a dynamic webserver using Ocsigen and Eliom. I am using Ocamlbuild for the compilation. The project is also going to use Batteries and Sexplib. This means I need to include Sexplib and Batteries within the .cma file for Ocsigen

[Caml-list] Problems with Godi and Expat under Lucid Lynx

2010-07-01 Thread Till Crueger
Hi, I am trying to rebuild ocaml-expat in Godi after upgrading to Lucid Lynx and have encountered some problems. The build process in the Godi console fails with the message: === expat not found Consider adding GODI_BASEPKG_EXPAT=yes to godi.conf Error: Exec error: File

[Caml-list] How to add () to function parameters

2009-10-16 Thread Till Crueger
Hi, I am looking for a way to add a unit parameter to a function that takes an arbitrary number of parameters. If the number of parameters is known this is fairly easy and I can just do: let lift1 f a = fun () - f a;; let lift2 f a b = fun () - f a b;; (all these create

Re: [Caml-list] OCaml and Matlab

2008-07-24 Thread Till Crueger
On Thu, 24 Jul 2008 11:23:27 +0200, Nicolas Pouillard [EMAIL PROTECTED] wrote: So I am not at all surprised, that it won't work, because the 'a actually is unbound. Was this maybe possible with older versions of the compiler, or are there some workarounds, to get it working again? That's