File: main.ml

package info (click to toggle)
ocaml-swhid-core 0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: ml: 570; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
open Swhid_core

let swhid =
  match
    Object.of_string "swh:1:cnt:bac494ecb6840e6b66f21aae7feb847b23f0745a"
  with
  | Error e ->
    Format.eprintf "error: %s@." e;
    exit 1
  | Ok id -> Format.printf "%a is a valid swhid !@." Object.pp id