| Safe Haskell | Safe-Infered |
|---|
Language.Fay.FFI
- 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
- foreignPropFay :: 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.
Instances
| 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. |
Arguments
| :: Foreign a | |
| => String | The foreign function name. |
| -> FayReturnType | JS return type. |
| -> a | Bottom. |
Declare a foreign action.
Arguments
| :: Foreign a | |
| => String | The foreign function name. |
| -> FayReturnType | JS return type. |
| -> a | Bottom. |
Declare a foreign function.
Arguments
| :: Foreign a | |
| => String | The foreign function name. |
| -> FayReturnType | JS return type. |
| -> a | Bottom. |
Declare a foreign function.
Arguments
| :: Foreign a | |
| => String | The foreign function name. |
| -> FayReturnType | JS return type. |
| -> a | Bottom. |
Declare a foreign function.
Arguments
| :: Foreign a | |
| => String | The foreign function name. |
| -> FayReturnType | JS return type. |
| -> a | Bottom. |
Declare a foreign function.
Arguments
| :: Foreign a | |
| => String | The foreign function name. |
| -> FayReturnType | JS return type. |
| -> a | Bottom. |
Declare a foreign action.
Arguments
| :: Foreign a | |
| => String | The foreign function name. |
| -> FayReturnType | JS return type. |
| -> a | Bottom. |
Declare a foreign function.