Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3216950
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:21:16+00:00 2026-05-17T15:21:16+00:00

What I want is to have the following source tree layout: src/ a.ml b.ml

  • 0

What I want is to have the following source tree layout:

src/  
   a.ml  
   b.ml  
   ...
tests/  
   a.ml  
   b.ml
   ...

Is it possible to distinct these modules and access
src/a.ml module as A and tests/a.ml module as something like Tests.A ?

Actually, there also is a problem with ocamlfind (UPD: omake) it thinks that tests/a.ml depends on itself rather than on src/a.ml

Of course, I can just rename the tests as, like, tests/aTest.ml, but I would like to avoid having to do it. And I just don’t believe that it’s impossible to have any similarly-named files in the whole source tree (regarding distinction purposes — isn’t it what folders and the whole hierarchical file systems thing are for?)
Thank you very much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:21:17+00:00Added an answer on May 17, 2026 at 3:21 pm

    -pack option can be used to group the set of compiled objects under the single module name.

    Actually, there also is a problem with
    ocamlfind: it thinks that tests/a.ml
    depends on itself rather than on
    src/a.ml

    ocamlfind doesn’t deal with deps between source files. ocaml compiler itself will not be able to resolve module names in such setup.

    And yes, it is better to avoid similarily named files in source tree 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have the following class X where I want to return access
I have the following Macro I want to call from within an AutoHotkey script
I have the following markup, and I want to make the All radio button
Say I have the following interface that I want to share between my server
I have the following code which works fine. However, I only want to return
I have the following string: <SEM>electric</SEM> cu <SEM>hello</SEM> rent <SEM>is<I>love</I>, <PARTITION />mind I want
I want to accomplish the following scenario in Drupal: You have 2 content-types. Lets
Using MEF I want to do the following. I have a WPF Shell. To
I have a tree control and I want to give the user the ability
Let's say, that I have the following source output: <p>This is first paragraph</p> <p>This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.