Safe Haskell | None |
---|---|
Language | Haskell98 |
The internal FFI module.
Documentation
The JavaScript FFI interfacing monad.
Values that may be null Nullable x decodes to x, Null decodes to null.
Values that may be undefined Defined x encodes to x, Undefined decodes to undefined. An undefined property in a record will be removed when encoding.
Do not serialize the specified type. This is useful for, e.g.
foo :: String -> String foo = ffi "%1"
This would normally serialize and unserialize the string, for no reason, in this case. Instead:
foo :: Ptr String -> Ptr String
Will just give an identity function.
The opposite of Ptr. Serialize the specified polymorphic type.
foo :: Automatic a -> String