caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Parameterizing a function with a thread monad
@ 2012-10-22 22:09 Philippe Veber
  2012-10-22 23:52 ` Jeremy Yallop
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Veber @ 2012-10-22 22:09 UTC (permalink / raw)
  To: caml users

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

Dear camlers,

A couple of libraries, like pgocaml for instance, define a functor over a
(monadic) thread implementation, like in the following:

module type Thread = sig
  type 'a t
  val return : 'a -> 'a t
  val bind : 'a t -> ('a -> 'b t) -> 'b t
end

module F(T : Thread) : sig
  val v : string -> string T.t
end

Is it possible to define F as a function (ie at the value level)?

Cheers,
  Philippe.

[-- Attachment #2: Type: text/html, Size: 519 bytes --]

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

end of thread, other threads:[~2012-10-24 10:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-22 22:09 [Caml-list] Parameterizing a function with a thread monad Philippe Veber
2012-10-22 23:52 ` Jeremy Yallop
2012-10-23  7:56   ` Gabriel Scherer
2012-10-24 10:45     ` Philippe Veber
2012-10-24 10:30   ` Philippe Veber

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).