na4zagin3 / satyrographos

Package manager for SATySFi
GNU Lesser General Public License v3.0
45 stars 13 forks source link

Automatically generate library information library #112

Open na4zagin3 opened 4 years ago

na4zagin3 commented 4 years ago

If SATySFi’s multi-step compilation allows something like version switch, it makes sense to have a package which exports a map from library names to library versions. Something like this:

% packages/satyrographos/experimental/libraries.satyh
type library = (|
  library-name: string;
  library-version : string;
|)

module Libraries : sig
  val list : library list
end = struct
  let list = [
      (| library-name = "base";
         library-version = "1.2.0";
      |)
    ]
end