caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] problem with generalisation
@ 2017-09-23 17:47 Christophe Raffalli
  2017-09-23 20:40 ` Damien Guichard
  2017-09-23 21:04 ` Markus Mottl
  0 siblings, 2 replies; 3+ messages in thread
From: Christophe Raffalli @ 2017-09-23 17:47 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

Hello,

I am blocked by this case not working (I reported on Mantis ...
https://caml.inria.fr/mantis/view.php?id=7636)

Any hint on how to make it works, apart fomr Obj.magic ?

I can not change the types, they come from a functor.

====================================================
type ('a, 'b) elt = 'a

type 'a iter = { f : 'b.('a, 'b) elt -> unit }

let promote f : 'a -> unit =
  let f : 'b.('a, 'b) elt -> unit = fun x -> f x in
    { f }
====================================================

Cheers,
Christophe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-23 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-23 17:47 [Caml-list] problem with generalisation Christophe Raffalli
2017-09-23 20:40 ` Damien Guichard
2017-09-23 21:04 ` Markus Mottl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).