Created
August 17, 2014 16:24
-
-
Save dbushenko/a2ac65159e80e6edbcc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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