vinyl-0.2: Extensible Records
Data.Vinyl.Relation
Synopsis
class IsSubtype r1 r2 => r1 (<:) r2 whereSource
A subtyping relation.
Methods
cast :: r1 -> r2Source
Instances
type :~: r1 r2 = (r1 <: r2, r2 <: r1)Source
If two records types are subtypes of each other, that means that they differ only in order of fields.
(~=) :: (Eq a, a :~: b) => a -> b -> BoolSource
Term-level record congruence.