Created
November 23, 2014 01:40
-
-
Save ridiculousfish/67a4eca1d461d6b147ea 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
{-# LANGUAGE ForeignFunctionInterface #-} | |
import Haste | |
import Haste.App | |
import Haste.Foreign | |
anything :: Server () | |
anything = return () | |
entry_point :: String -> String -> IO () | |
entry_point regex_str lang = do | |
runApp def $ do | |
remote_anything <- remote anything | |
runClient $ do | |
onServer remote_anything | |
main :: IO () | |
main = do | |
#ifdef __HASTE__ | |
export (toJSString "hs_entry_point") entry_point | |
#endif | |
runApp def $ do | |
runClient $ return () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment