<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/10/66c5dd04f7232f31652121d7b88bc56b"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-10-10T14:43:07"
  subject="Re: [Caml-list] Cannot access module members as unqualified"
  prev="2009/10/6fc25f4b77ba5ce29700dc5405925c02"
  next="2009/10/c17c0e6481804fa9249bde60a00584c2"
  prev-in-thread="2009/10/343ca705c5df0d0969aef5a79136c62c"
  prev-thread="2009/10/2a3b947aa9b77f6b0e4558b8fd0b4984"
  next-thread="2009/10/c17c0e6481804fa9249bde60a00584c2"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Cannot access module members as unqualified">
<msg 
  url="2009/10/343ca705c5df0d0969aef5a79136c62c"
  from="rouanvd@s..."
  author="rouanvd@s..."
  date="2009-10-10T09:30:03"
  subject="Cannot access module members as unqualified">
<msg 
  url="2009/10/66c5dd04f7232f31652121d7b88bc56b"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2009-10-10T14:43:07"
  subject="Re: [Caml-list] Cannot access module members as unqualified">
</msg>
</msg>
</thread>

<contents>
On Sat, Oct 10, 2009 at 10:39:46AM +0200, rouanvd@softwarerealisations.com wrote:
&gt; ============================================
&gt; module Preprocessor =
&gt;     struct
&gt; 
&gt;         let run txt =
&gt;             print_endline txt;
&gt;             txt ^ txt ;;
&gt; 
&gt;     end;;
[...]
&gt; ocamlc -c Preprocessor\Preprocessor.ml

The problem you have is the above code defines a module called
Preprocessor.Preprocessor.

Omit all the [module ... = struct] and [end;;] parts, and it will
work fine.

http://ocaml-tutorial.org/the_structure_of_ocaml_programs

Rich.

-- 
Richard Jones
Red Hat

</contents>

</message>

