Safe Haskell | Safe-Infered |
---|
- data JsPtr a
- class Foreign a
- foreignFay :: Foreign a => String -> FayReturnType -> a
- foreignPure :: Foreign a => String -> FayReturnType -> a
- foreignValue :: Foreign a => String -> FayReturnType -> a
- foreignProp :: Foreign a => String -> FayReturnType -> a
- foreignMethodFay :: Foreign a => String -> FayReturnType -> a
- foreignMethod :: Foreign a => String -> FayReturnType -> a
- foreignSetProp :: (Foreign object, Foreign value) => String -> object -> value -> Fay ()
Documentation
Contains allowed foreign function types.
Foreign Bool | Bools are OK. |
Foreign Char | Characters are OK. |
Foreign Double | All numbers in JS are double. |
Foreign () | Unit is OK. |
Foreign a => Foreign [a] | Lists → arrays are OK. |
Foreign a => Foreign (Fay a) | JS values are foreignable. |
Foreign (JsPtr a) | Pointers to arbitrary objects are OK. |
(Foreign a, Foreign b) => Foreign (a -> b) | Functions are foreignable. |
:: Foreign a | |
=> String | The foreign function name. |
-> FayReturnType | JS return type. |
-> a | Bottom. |
Declare a foreign action.
:: Foreign a | |
=> String | The foreign function name. |
-> FayReturnType | JS return type. |
-> a | Bottom. |
Declare a foreign function.
:: Foreign a | |
=> String | The foreign function name. |
-> FayReturnType | JS return type. |
-> a | Bottom. |
Declare a foreign function.
:: Foreign a | |
=> String | The foreign function name. |
-> FayReturnType | JS return type. |
-> a | Bottom. |
Declare a foreign function.
:: Foreign a | |
=> String | The foreign function name. |
-> FayReturnType | JS return type. |
-> a | Bottom. |
Declare a foreign action.
:: Foreign a | |
=> String | The foreign function name. |
-> FayReturnType | JS return type. |
-> a | Bottom. |
Declare a foreign function.