catala/compiler
Louis Gesbert 1de18f0e04 Preserve the capitalisation of module filenames
Module names must be capitalised (start with a capital letter), and the name of
the file on disk must match ; however, matching up to capitalisation is allowed,
i.e. the file on disk can start with a lowercase letter.

A mismatch between Clerk assuming generated module artifacts would match the
capitalised module name, and `catala depends` matching the names of files on
disk (because it would otherwise mean treating dependencies differently
depending on if they originate from modules or not) was causing "file not found"
errors later on in the compilation chain.

This patch enforces that the capitalisation of the original file name on
disk (which is always known) takes precedence in Clerk, matching the behaviour
of `catala depends` and fixing the issue. It's also actually a small
simplification in Clerk code.
2024-04-15 23:00:56 +02:00
..
catala_utils Improve message formatting throughout 2024-04-12 17:07:36 +02:00
dcalc Fix extra_pos/pos 2024-04-12 17:06:44 +02:00
desugared Support for structure updates 2024-04-12 17:17:48 +02:00
lcalc Protect the interpreter against exceptions from custom code 2024-04-15 14:13:33 +02:00
literate Rewriting message calls to use the new intf 2024-04-10 19:26:23 +02:00
plugins Message: further simplification 2024-04-10 19:26:23 +02:00
scalc Protect the interpreter against exceptions from custom code 2024-04-15 14:13:33 +02:00
scopelang Support for structure updates 2024-04-12 17:17:48 +02:00
shared_ast Preserve the capitalisation of module filenames 2024-04-15 23:00:56 +02:00
surface Support for structure updates 2024-04-12 17:17:48 +02:00
verification Rewriting message calls to use the new intf 2024-04-10 19:26:23 +02:00
catala_web_interpreter.ml Rewriting message calls to use the new intf 2024-04-10 19:26:23 +02:00
catala.ml replace let _ by let () or add type annotation 2023-09-09 22:02:39 +02:00
driver.ml Fix: allow external modules to access the OCaml stdlib 2024-04-13 12:01:47 +02:00
driver.mli Move global options of Cli to their own module 2024-03-19 15:18:35 +01:00
dune CI: cleanup the exposed artifacts 2024-01-22 13:58:32 +01:00
index.mld More doc 2023-06-18 16:08:16 +02:00
plugin.ml Rewriting message calls to use the new intf 2024-04-10 19:26:23 +02:00
plugin.mli Move global options of Cli to their own module 2024-03-19 15:18:35 +01:00
tests.ml Generalise the definition of lists of nested binders 2024-02-09 18:33:41 +01:00