Module

Record.Optional.Fields

Package
purescript-record-ptional-fields
Repository
katsujukou/purescript-record-optional-fields

#optional Source

optional :: forall @t a b. Optional (Root ()) t a b => a -> b

#Optional Source

class Optional :: (Type -> Context) -> Type -> Type -> Type -> Constraintclass Optional ctx t a b | ctx t a -> b where

Members

Instances

#GetTypeWithDefault Source

class GetTypeWithDefault :: (Type -> Context) -> Type -> Symbol -> Row Type -> RowList Type -> Type -> Constraintclass GetTypeWithDefault ctx t prop row rl out | ctx t prop row rl -> out where

Members

Instances

#OptionalRecordProps Source

class OptionalRecordProps :: (Type -> Context) -> Row Type -> RowList Type -> RowList Type -> Row Type -> Row Type -> Constraintclass OptionalRecordProps ctx r l li ri ro | ctx r l ri -> li ro where

Members

Instances

#DropIfExists Source

class DropIfExists :: Row Type -> Symbol -> Row Type -> Constraintclass DropIfExists ri label ro | ri label -> ro

Instances

#DropIfExistsRowList Source

class DropIfExistsRowList :: Row Type -> RowList Type -> Symbol -> Row Type -> Constraintclass DropIfExistsRowList r rl label ro | r rl label -> ro

Instances