caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Problems building a library, types go missing
@ 2013-07-28  0:13 Goswin von Brederlow
  2013-07-29 11:03 ` Leo White
  0 siblings, 1 reply; 3+ messages in thread
From: Goswin von Brederlow @ 2013-07-28  0:13 UTC (permalink / raw)
  To: caml users

Hi,

I'm trying to build a library in one of 2 ways out of
seperate modules. All files are available via git from

https://github.com/mrvn/ocam-problems/tree/functor-in-lib-problem
git clone git@github.com:mrvn/ocam-problems.git

The first library works and uses these files:

internal/IntFoo.ml	: implement module T
internal/IntWorks.ml    : declare module type T_t and functor taking a T_t
lib/works.ml            : library mapping internal to external modules
test/test1.ml		: test functor with local module
test/test2.ml		: test functor with libraries module
test/test3.ml		: test privatness of internal module (MUST FAIL)
test/test4.ml		: test3 with too many includes (SHOULD FAIL)

and the second fails and uses there files:

internal/IntFoo_t.ml    : declare module type T_t
internal/IntFoo.ml      : implement module T
internal/IntFails.ml    : functor taking a IntFoo_t.T_t
lib/fails.ml		: library mapping internal to external modules
test/test5.ml		: test functor with local module (FAILS)
test/test6.ml		: test functor with libraries module (FAILS)
test/test7.ml		: test privatness of internal module (MUST FAIL)
test/test8.ml		: test7 with too many includes (SHOULD FAIL)


Now my question is: Why does the Fails.Foo_t.T_t type get lost all of
a sudden unless I include the internal directory in the search path?

MfG
	Goswin

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

end of thread, other threads:[~2013-08-01 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-28  0:13 [Caml-list] Problems building a library, types go missing Goswin von Brederlow
2013-07-29 11:03 ` Leo White
2013-08-01 15:00   ` Goswin von Brederlow

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