package datalog

  1. Overview
  2. Docs

Module BottomUp.UnivSource

This module is present to allow the user to extend explanations with her own types.

This is largely inspired by this thread

Sourcetype t

The universal type

Sourcetype 'a embedding

Conversion between the universal type and 'a

Sourceval embed : unit -> 'a embedding

Create a new embedding. Values packed by a given embedding can only be unpacked by the same embedding.

Sourceval pack : 'a embedding -> 'a -> t
Sourceval unpack : 'a embedding -> t -> 'a option
Sourceval compatible : 'a embedding -> t -> bool
OCaml

Innovation. Community. Security.