module Language.Fay.FFI where
import Language.Fay.Types (Fay,FayReturnType(..))
import Prelude (Bool,String,Double,Char,error)
data JsPtr a
class Foreign a
instance Foreign ()
instance Foreign Double
instance Foreign Char
instance Foreign Bool
instance Foreign a => Foreign [a]
instance Foreign (JsPtr a)
instance Foreign a => Foreign (Fay a)
instance (Foreign a,Foreign b) => Foreign (a -> b)
foreignFay
:: Foreign a
=> String
-> FayReturnType
-> a
foreignFay = error "Language.Fay.FFI.foreignFay: Used foreign function not in a JS engine context."
foreignPure
:: Foreign a
=> String
-> FayReturnType
-> a
foreignPure = error "Language.Fay.FFI.foreign: Used foreign function not in a JS engine context."
foreignPropFay
:: Foreign a
=> String
-> FayReturnType
-> a
foreignPropFay = error "Language.Fay.FFI.foreignPropFay: Used foreign function not in a JS engine context."
foreignProp
:: Foreign a
=> String
-> FayReturnType
-> a
foreignProp = error "Language.Fay.FFI.foreignProp: Used foreign function not in a JS engine context."
foreignSetProp
:: (Foreign object,Foreign value)
=> String
-> object
-> value
-> Fay ()
foreignSetProp = error "Language.Fay.FFI.foreignSetProp: Used foreign function not in a JS engine context."