Questions tagged [ocsigen]

The Ocsigen project is a framework for programming web and mobile applications in OCaml.

The Ocsigen project is a framework for programming web and mobile applications in OCaml. It includes

44 questions
1
vote
1 answer

How can I pass a user_type from an Eliom client to a coservice?

http://ocsigen.org/eliom/manual/server-params#h5o-3 shows an example of a GET service that accepts a user-defined type. I'd like to call a coservice with a user_type from the client side, with the same type on the client side. It seems like it…
unhammer
  • 4,306
  • 2
  • 39
  • 52
1
vote
1 answer

How to fully utilise lwt_pool?

I am struggling at the check and validate function for Lwt_pool.create and have some questions here. val create : int -> ?check:('a -> (bool -> unit) -> unit) -> ?validate:('a -> bool Lwt.t) -> (unit -> 'a Lwt.t) -> 'a t First of all, let…
Jackson Tale
  • 25,428
  • 34
  • 149
  • 271
1
vote
2 answers

Are there other web application frameworks similar to Ocsigen?

I recently started looking into the idea of using a web application framework that provides a more unified way of handling client-side and server-side programming, and I discovered a project called Ocsigen. Ocsigen seems very similar to what I'm…
Ajedi32
  • 45,670
  • 22
  • 127
  • 172
1
vote
1 answer

upgrade ocsigen error

I want to upgrade the ocsigen to 2.1 in my freebsd box. $pkg_info | grep -i ocsigen ocsigen-1.1.0_1 Web programming framework for OCaml $cat /usr/ports/www/ocsigen/Makefile | grep -i version POPORTVERSION= 2.1 $sudo pormaster…
z_axis
  • 8,272
  • 7
  • 41
  • 61
1
vote
1 answer

install ocsigen-bundle-2.2.2 error

$./configure --prefix ${HOME}/ocsigen OCSIGEN_USER=${USER} OCSIGEN_GROUP=${USER} --with-missing-libs ... checking for sqlite3_open in -lsqlite3... no configure: error: SQLite is required. See the --with-sqlite3 configure option. $uname -r …
z_axis
  • 8,272
  • 7
  • 41
  • 61
0
votes
1 answer

How to use deriving Show() in mutually recursive types?

Let's directly see the codes. type symbol = | JumpDes of int | CallDes of func | StarDes of exp (*here needs the definition of type exp*) deriving (Show) type exp = | Const of const | Symbol of symbol (*here needs the definition of…
S1mple
  • 35
  • 6
0
votes
0 answers

Error during compiling application template written with Eliom of Ocsigen Start

When I try to compile an application template of Ocsigen Start following this instruction, the error shown below happens at make test.byte. Could you tell me how to fix this? LC_ALL=C ocsigen-i18n-generator \ --languages en,fr \ --default-language…
MR. ROBOT
  • 37
  • 6
0
votes
0 answers

Unimplemented Javascript primitive caml_pure_js_expr (again)

I have a project in OCaml that could be compiled in Ubuntu long time ago. Today, I want to pick up the project and try to compile it in macOS Mojave 10.14.2. ocaml --version returns The OCaml toplevel, version 4.07.1, js_of_ocaml --version returns…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
1 answer

Wrap an OCaml function that receives a JS object (record)

I want to write a very simple function in OCaml, and wrap it to make a JS function jsGet by js_of_ocaml, such that jsGet could take a JS object (or record) as input. I tried the following code: \\ in Home.js function testJsGet () { var input =…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
1 answer

Wrap an OCaml function that returns a record

I have defined an OCaml function manipulate: string -> string. And I wrap it to make a JS function jsManipulate: let () = Js.Unsafe.global##.jsManipulate := Js.wrap_callback (fun s -> Js.string (manipulate (Js.to_string s))) Now, I want to…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
2 answers

Lwt and recursive functions

Is it ok to use Lwt.return as the final call in a recursive function? I have a function that compiles fine but does not run properly and it looks like the function f below. Please assume that there is no issue with any function provided as g in this…
Thomas
  • 347
  • 3
  • 19
0
votes
1 answer

How to replicate

I am trying to replicate the following code in Eliom but I cannot figure out the best way to replicate the
Thomas
  • 347
  • 3
  • 19
0
votes
2 answers

How to integrate Bootstrap with Eliom?

I am trying to use Bootstrap within the Eliom framework but I cannot figure out how to use some of the html attributes correctly. Take for example the following code from the bootstrap website (http://getbootstrap.com/components/#btn-groups):
Thomas
  • 347
  • 3
  • 19
0
votes
0 answers

ocp-indent and eliom files

I installed ocp-indent 1.4.2 via opam. It works fine with most of ocaml files but it fails to indent the eliom files properly. For example the following {shared{ open Eliom_lib }} is indented as {shared{ open Eliom_lib }} The command ocp-indent…
oddg
  • 43
  • 7
1 2
3