caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: Benedikt Grundmann <benedikt-grundmann@web.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] module interface?
Date: Mon, 30 Jul 2007 17:55:44 +1000	[thread overview]
Message-ID: <1185782144.6753.13.camel@rosella.wigram> (raw)
In-Reply-To: <9b415f950707300003t225273cfi9d2761359bf6a3be@mail.gmail.com>

On Mon, 2007-07-30 at 09:03 +0200, Benedikt Grundmann wrote:
> module Drules : Map.S with type key = string

So I discovered -- thanks! But hmm, this totally counter intuitive!

You call Map.Make, but refer to Map.S.
The supplied key is with

	type t = string

but in the sig you use

	type key = string

and finally the 

	let compare = compare

in the module is simply dropped.

There is no example of this in the tutorial..
how would I every guess at the right solution?

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


  reply	other threads:[~2007-07-30  7:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30  6:45 skaller
2007-07-30  7:03 ` [Caml-list] " Benedikt Grundmann
2007-07-30  7:55   ` skaller [this message]
2007-07-30  8:02     ` Benedikt Grundmann
2007-07-30  8:16       ` skaller
2007-07-30 16:43     ` Christopher L Conway
2007-07-30 17:13       ` skaller
2007-07-30 19:24         ` Jon Harrop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1185782144.6753.13.camel@rosella.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=benedikt-grundmann@web.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).