Module

Justifill.Justifiable

Package
purescript-justifill
Repository
i-am-the-slime/purescript-justifill

#Justifiable Source

class Justifiable unjust just  where

Members

Instances

#JustifiableFields Source

class JustifiableFields :: RowList Type -> Row Type -> Row Type -> Row Type -> Constraintclass JustifiableFields (xs :: RowList Type) (row :: Row Type) (from :: Row Type) (to :: Row Type) | xs -> row from to where

In case of empty Arrays or Nothing values, it helps inference to go from the add a functional dependency from the output to the input type However, that messess with the more basic cases (going from a -> a fails to find an instance) Therefore, we only fall back to this at this point Note how b and a are unrelated types here

Members

Instances