/dhall-path/Path/Relative/reparentBy

Copy path to clipboard

Source

let Path/Relative = ./Type

let Typ = ../Typ

in λ(type : Typ) →
λ(path : Path/Relative type) →
λ(levels : Natural) →
path ⫽ { parents = path.parents + levels }