Skip to content

Commit

Permalink
Compiler: Build_info/Unit_info: conversion to and from string maps (#…
Browse files Browse the repository at this point in the history
…1657)

Co-authored-by: Jérôme Vouillon <jerome.vouillon@gmail.com>
  • Loading branch information
OlivierNicole and vouillon committed Aug 2, 2024
1 parent 3204c33 commit c484610
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/lib/build_info.ml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ let parse s =
in
Some t

let to_map : t -> string StringMap.t = Fun.id

let of_map : string StringMap.t -> t = Fun.id

exception
Incompatible_build_info of
{ key : string
Expand Down
4 changes: 4 additions & 0 deletions compiler/lib/build_info.mli
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ val to_string : t -> string

val parse : string -> t option

val to_map : t -> string StringMap.t

val of_map : string StringMap.t -> t

val with_kind : t -> kind -> t

exception
Expand Down

0 comments on commit c484610

Please sign in to comment.