caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Juancarlo Añez" <juanca@suigeneris.org>
To: <caml-list@yquem.inria.fr>
Subject: OCAML Newby Question: unbound module?
Date: Thu, 10 Feb 2005 12:23:57 -0400	[thread overview]
Message-ID: <200502101624.j1AGO3qP019814@concorde.inria.fr> (raw)
In-Reply-To: <1107774357-a3361ef8de723e0a521735eb944d0de7@rashitoul.net>

I'm trying to write my first OCAML program. It will be a module that helps
handlings sets of path, like Apache Ant and WANT
(http://www.suigeneris.org/want) do.

Below is the first few lines of code I wrote. Whey I try to run it with
ocaml, I get:

"File "pattensets.ml", line 1, characters 0-11:
Unbound module Dumper"

Dumper.mil and dumper.ml are in the same directory.

What am I doing wrong?

--
Juanco
---

open Dumper;;

type fileName = string;;

type path = fileName list;;

let rec extract_file_name = function
    | ([], name)        -> ([], name)
    | ('/'::tail, name) -> (tail, name)
    | (c::tail, name)   -> extract_file_name (tail, name @ [c])
    ;;

let a = extract_file_name (['a';'b';'c'], [])
in
  prerr_endline (Dumper.dump a);;


  reply	other threads:[~2005-02-10 16:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-07  8:41 Socket and Threads on windows Julien Boulnois
2005-02-07 10:33 ` [Caml-list] " Olivier Pérès
2005-02-07 11:05   ` Julien Boulnois
2005-02-10 16:23     ` Juancarlo Añez [this message]
2005-02-11 14:45       ` [Caml-list] OCAML Newby Question: unbound module? John Prevost

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=200502101624.j1AGO3qP019814@concorde.inria.fr \
    --to=juanca@suigeneris.org \
    --cc=caml-list@yquem.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).