Module
Data.Default
- Package
- purescript-default-values
- Repository
- imsaravana369/purescript-default
#DefaultValue Source
class DefaultValue a where
Members
defaultValue :: a
Instances
DefaultValue Unit
DefaultValue Int
DefaultValue String
DefaultValue Number
DefaultValue Boolean
DefaultValue (Maybe a)
(DefaultValue e) => DefaultValue (Either e a)
DefaultValue (Array a)
DefaultValue (List a)
DefaultValue (Map k v)
DefaultValue (Object a)
(DefaultValue a, DefaultValue b) => DefaultValue (Tuple a b)
(RowToList row list, DefaultValueRecord list row) => DefaultValue (Record row)
#DefaultValueRecord Source
class DefaultValueRecord :: RowList Type -> Row Type -> Constraint
class DefaultValueRecord rowList row | rowList -> row where
Members
defaultRecord :: Proxy rowList -> Record row
Instances
DefaultValueRecord Nil ()
(IsSymbol key, DefaultValue focus, Cons key focus rowTail row, DefaultValueRecord rowListTail rowTail) => DefaultValueRecord (Cons key focus rowListTail) row
- Modules
- Data.
Default