Skip to content

Instantly share code, notes, and snippets.

@dbushenko
Created August 17, 2014 16:24
Show Gist options
  • Save dbushenko/a2ac65159e80e6edbcc9 to your computer and use it in GitHub Desktop.
Save dbushenko/a2ac65159e80e6edbcc9 to your computer and use it in GitHub Desktop.
module Main where
import Debug.Trace
foreign import getStringProp
"function getStringProp(obj) {\
\ return function (prop) {\
\ return obj[prop];\
\ };\
\}" :: forall a. a -> String -> String
signInCallback authResult =
getStringProp authResult
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment