Module
Simple.JSON
- Package
- purescript-simple-json
- Repository
- justinwoo/purescript-simple-json
#readJSON Source
readJSON :: forall a. ReadForeign a => String -> F a
Read a JSON string to a type a
using F a
. Useful with record types.
#ReadForeign Source
class ReadForeign a where
A class for reading foreign values to a type. Warning: This class should not be instantiated.
Members
Instances
ReadForeign Foreign
ReadForeign Char
ReadForeign Number
ReadForeign Int
ReadForeign String
ReadForeign Boolean
(ReadForeign a) => ReadForeign (Array a)
(ReadForeign a) => ReadForeign (NullOrUndefined a)
(RowToList fields fieldList, ReadForeignFields fieldList fields, ListToRow fieldList fields) => ReadForeign (Record fields)
#ReadForeignFields Source
class ReadForeignFields (xs :: RowList) (row :: Row Type) where
A class for reading foreign values from properties. Warning: This class should not be instantiated.
Members
Instances
(IsSymbol name, ReadForeign ty, ReadForeignFields tail tailRow, RowLacks name tailRow, RowCons name ty tailRow row) => ReadForeignFields (Cons name ty tail) row
(TypeEquals (Record ()) (Record row)) => ReadForeignFields Nil row
- Modules
- Simple.
JSON