Module
Foreign.Index
- Package
- foreign
- Repository
- purerl/purescript-foreign
This module defines a type class for types which act like property indices.
#Index Source
class Index :: Type -> (Type -> Type) -> Constraint
class Index i m | i -> m where
This type class identifies types that act like property indices.
The canonical instances are for String
s and Int
s.
Members
index :: Foreign -> i -> FT m Foreign
hasProperty :: i -> Foreign -> Boolean
hasOwnProperty :: i -> Foreign -> Boolean
errorAt :: i -> ForeignError -> ForeignError
Instances
- Modules
- Foreign
- Foreign.
Index - Foreign.
Keys