yoriyuki / Camomile

A Unicode library for OCaml
Other
125 stars 26 forks source link

Fix the compilation of camomile.cmxs #8

Closed kit-ty-kate closed 10 years ago

kit-ty-kate commented 10 years ago

I'm sorry I didn't tested it very well. Here is the fix. It ended up with:

undefined symbol: camlCamomileLibraryDefault

By the way, what's the purpose of camomileLibrary ?

yoriyuki commented 10 years ago

See README, Sec 2.2

Camomile's idea of configuration is "configuration by functors". Modules which require configuration become functors parametrized by a module which contains configuration variables. CamomileLibrary.ConfigInt.Type specifies the module type of configuration parameters. You can pass the configuration module to individual modules' Make (as UCol.Make) or Configure functors (as CharEncoding.Configure), or pass it to the whole-in-one functor CamomileLibrary.Make and obtain configured modules.