From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: Andreas Rossberg <rossberg@ps.uni-sb.de>, caml-list@inria.fr
Subject: Re: [Caml-list] Caml 3.01 : pb with include
Date: Tue, 13 Mar 2001 12:23:28 +0100 [thread overview]
Message-ID: <3AAE0330.BA5E1674@univ-savoie.fr> (raw)
In-Reply-To: <20010313113214.B24377@pauillac.inria.fr>
What I realy would like are more flexible include and constaints to make the
following work:
module type Semi_Group =
sig
type t
val e : t
val ( ** ) : t -> t -> t
end
module type Group =
sig
include Semi_Group
val inv : t -> t
end
module type Semi_Group_Morphism =
sig
module G1 : Semi_Group
module G2 : Semi_Group
val f : G1.t -> G2.t
end
(* I would like to be able to use include for the next definition:
something like:
module type Group_Morphism =
sig
include Semi_Group_Morphism with module G1 : Group and module G2 : Group
end
*)
module type Group_Morphism =
sig
module G1 : Group
module G2 : Group
val f : G1.t -> G2.t
end
module Idt_Semi_Group_Morphism(SG : Semi_Group) = (
struct
module G1 = SG
module G2 = SG
let f = fun x -> x
end : Semi_Group_Morphism with module G1 = SG and module G2 = SG)
(* I can't make the next definition work using include at all *)
module Idt_Group_Morphism(G : Group) = (
struct
include (Idt_Semi_Group_Morphism(G) : Semi_Group_Morphism with module G1 = G
and module G2 = G)
end : Group_Morphism with module G1 = G and module G2 = G)
--
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex
tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-03-13 13:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-11 5:04 [Caml-list] Camlp4 3.01 released Daniel de Rauglaudre
2001-03-12 11:52 ` [Caml-list] Caml 3.01 : pb with include Christophe Raffalli
2001-03-12 17:13 ` Andreas Rossberg
2001-03-13 10:32 ` Xavier Leroy
2001-03-13 11:18 ` Andreas Rossberg
2001-03-13 11:23 ` Christophe Raffalli [this message]
2001-03-21 13:25 Dave Berry
2001-03-21 16:15 ` Judicael Courant
2001-03-23 12:02 Dave Berry
2001-03-27 9:19 ` Judicael Courant
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=3AAE0330.BA5E1674@univ-savoie.fr \
--to=christophe.raffalli@univ-savoie.fr \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=rossberg@ps.uni-sb.de \
/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