Greetings to everybody,

Recently, I have found the OCaml Network Application Environment
library featuring many useful tools.

http://sourceforge.net/projects/ocnae/

Unfortunately, building this library on with OCaml-3.10+beta on Ubuntu
7.04 fails due to the types mismatch in module signature and
implementation:

<pre>
ocamlfind ocamlc -package "unix" -predicates "" -passopt -w -passopt
Ae  -principal -g -o cf_scan_parser.cmo -c cf_scan_parser.ml
The implementation cf_scan_parser.ml
does not match the interface cf_scan_parser.cmi:
Values do not match:
  val cscanf :
    ('a -> (< fini : 'c; init : Scanf.Scanning.scanbuf; .. > as 'b)) -
>
    ('b -> exn -> 'd) ->
    ('e, Scanf.Scanning.scanbuf, 'f, 'g -> 'h, 'e -> 'd, 'd) format6 -
>
    'g -> 'a -> ('h * 'c) option
is not included in
  val cscanf :
    ('a Cf_seq.t -> ('a #scanner as 'b)) ->
    ('b -> exn -> 'c) ->
    ('d, Scanf.Scanning.scanbuf, 'c) format -> 'd -> ('a, 'c)
Cf_parser.t
make: *** [cf_scan_parser.cmo] Error 2
</pre>

The relevant part in the cf_scan_parser.ml file is:

<pre>
let cscanf cf ef fmt rf z =
  let s = cf z in
  let ef0 _ x = ef s x in
    try
      let v = Scanf.kscanf s#init ef0 fmt rf in
      let z = s#fini in
        Some (v, z)
    with
      | No_match ->
          None
</pre>

and in the interface cf_scan_parser.mli :

<pre>
val cscanf:
  ('i Cf_seq.t -> ('i #scanner as 's)) -> ('s -> exn -> 'o) ->
  ('f, Scanf.Scanning.scanbuf, 'o) format -> 'f -> ('i, 'o)
Cf_parser.t
</pre>

I have filed a bug on the project site already, but there is no
response and it looks like not so hard.

Could anybody give a hint what is going wrong here, and in which
direction to seek the fix?

With best regards,

Victor Anyakin
http://vityok.org.ua


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocaml-developer" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ocaml-developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to