package higher

  1. Overview
  2. Docs

Module type Higher.Newtype2Source

Construct a newtype for a type constructor with two parameters.

Sourcetype ('a, 'b) s
Sourcetype t
Sourceval inj : ('a, 'b) s -> ('a, ('b, t) app) app
Sourceval prj : ('a, ('b, t) app) app -> ('a, 'b) s