Module

Data.Homogeneous

Package
purescript-homogeneous
Repository
paluh/purescript-homogeneous

#ListToHomogeneous Source

class ListToHomogeneous :: forall k. RowList Type -> k -> Row Type -> Constraintclass ListToHomogeneous (rl :: RowList Type) a (r :: Row Type) | rl a -> r

Fold a RowList into a row but use a type to fill all values type.

Instances

#HomogeneousRowLabels Source

class HomogeneousRowLabels :: forall a b. Row a -> a -> Row b -> Constraintclass HomogeneousRowLabels r a ls | r -> a ls

We provide two different versions of constraints so you can get your homogeneous row from labels and value type alone and you can get labels and value type just from row. This can be useful when we don't know the type of the row yet etc.

Instances

#ToHomogeneousRow Source

class ToHomogeneousRow :: forall a b. Row a -> b -> Row b -> Constraintclass ToHomogeneousRow ls b r | ls b -> r

Instances

#ToHomogeneousRow' Source

class ToHomogeneousRow' :: forall a b. RowList a -> b -> Row b -> Constraintclass ToHomogeneousRow' ll b r | ll b -> r

Instances

#Keys Source

class Keys :: RowList Type -> Constraintclass Keys (xs :: RowList Type)  where

Reflect row list labels into a List String. Taken from record-extra.

Members

Instances