Please find attached a build-system for Haskell. Currently focusing on GHC, but trying to be flexible for addition of support for other compilers. Please note that installed libraries need to be registered in a compiler specific database. The database consists of a directory with a configuration file for each library and *a single binary cache* file. To avoid clashes in profiles, the build system does not create the cache. To overcome clash problems: at build time the build system creates a temporary library database to make GHC find input libraries. However, when a user installs a library in his profile we need to create a database cache. I would like to propose to use the same mechanism as used for the "dir" file of texinfo. WDYT? Binary files seems to include absolute path to libraries and do not require any special handling. This impression comes from inspecting haddock's derivation created with this build system. Regards, Fede