Module

Foreign.Index

Package
purescript-foreign
Repository
purescript/purescript-foreign

This module defines a type class for types which act like property indices.

#Index Source

class Index i  where

This type class identifies types that act like property indices.

The canonical instances are for Strings and Ints.

Members

Instances

#Indexable Source

class Indexable a  where

Members

Instances

#readProp Source

readProp :: String -> Foreign -> F Foreign

Attempt to read a value from a foreign value property

#readIndex Source

readIndex :: Int -> Foreign -> F Foreign

Attempt to read a value from a foreign value at the specified numeric index

#(!) Source

Operator alias for Foreign.Index.ix (left-associative / precedence 9)