caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Vincent Aravantinos <vincent.aravantinos@gmail.com>
To: Walter Cazzola <cazzola@dico.unimi.it>
Cc: OCaML Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] sig
Date: Fri, 7 Oct 2011 13:00:08 -0400	[thread overview]
Message-ID: <3FE56BBD-A8C9-4DF3-B38B-B0FE31BB9E2A@gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1110071855370.3251@surtur.dico.unimi.it>

values should start with a low case char: EmptyGraph -> emptyGraph,  
AddNode -> addNode

Le 7 oct. 11 à 12:57, Walter Cazzola a écrit :

> 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
> -- 
>
> -- 
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



  reply	other threads:[~2011-10-07 17:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 16:57 Walter Cazzola
2011-10-07 17:00 ` Vincent Aravantinos [this message]
2011-10-09 14:18   ` Walter Cazzola
2011-10-07 20:46 ` Stefano Zacchiroli
2011-10-09 15:16   ` Walter Cazzola

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=3FE56BBD-A8C9-4DF3-B38B-B0FE31BB9E2A@gmail.com \
    --to=vincent.aravantinos@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=cazzola@dico.unimi.it \
    /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).