Created
July 16, 2012 12:41
-
-
Save RudolfVonKrugstein/3122476 to your computer and use it in GitHub Desktop.
UHC global objects imports
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
foreign import js "saveObject(%1, %2)" | |
jsSaveObject :: JSString -> a -> IO () | |
saveObject :: String -> a -> IO () | |
saveObject s a = jsSaveObject (toJS s) a | |
foreign import js "loadObject(%1)" | |
jsLoadObject :: JSString -> IO a | |
loadObject = jsLoadObject . toJS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment