marshalResult
    :: JSFunction a   -- ^ Function that has been executed
    -> Window         -- ^ Browser context
    -> JSON.Value     -- ^ JSON representation of the return value 
    -> JSON.Result a  -- ^ Function result as parsed Haskell value
marshalResult fun w = JSON.parse (marshal fun w)
marshalResult
    :: JSFunction a   -- ^ Function that has been executed
    -> Window         -- ^ Browser context
    -> JSON.Value     -- ^ JSON representation of the return value 
    -> JSON.Result a
marshalResult fun w = JSON.parse (marshal fun w)
marshalResult fun w = JSON.parse (marshal fun w)