caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] sig
@ 2011-10-07 16:57 Walter Cazzola
  2011-10-07 17:00 ` Vincent Aravantinos
  2011-10-07 20:46 ` Stefano Zacchiroli
  0 siblings, 2 replies; 5+ messages in thread
From: Walter Cazzola @ 2011-10-07 16:57 UTC (permalink / raw)
  To: OCaML Mailing List

Dear all,
sorry for being so dumb but I've still problems with types and the sig
syntax.

I'm trying to write a Graph ADT:

  module type GraphADT =
    sig
       type 'a graph
       val EmptyGraph : 'a graph

       val AddNode : 'a * 'a graph -> 'a graph
    end;;

but when I try to evaluate it I get:

   Syntax error: 'end' expected, the highlighted 'sig' might be unmatched

pointing to the row inbetween type and the first val but I don't
understand why and how to solve it.

Any help is welcome as always

TIA
Walter
-- 

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

end of thread, other threads:[~2011-10-09 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07 16:57 [Caml-list] sig Walter Cazzola
2011-10-07 17:00 ` Vincent Aravantinos
2011-10-09 14:18   ` Walter Cazzola
2011-10-07 20:46 ` Stefano Zacchiroli
2011-10-09 15:16   ` Walter Cazzola

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