0

I'm trying to load a module from a parent directory into the top level interpretor.

#load "../Syntax.cmo";;
open Syntax

let foo = bar

Where bar is in Syntax. I have module Syntax in the parent directory. Loading module Syntax does not cause any problems, but the open line throws an error:

Error: Unbound module Syntax

I have also tried removing the open:

#load "../Syntax.cmo";;
let foo = Syntax.bar

But that gives me the same error as Syntax is in the parent directory.

Is there anyway around this?

4

1 に答える 1