Last active
May 25, 2018 11:55
-
-
Save knaman2609/75c2378fc177308be2b15391873bca9d 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
data Options = Local | Seasonal | LongDistance | |
foreign import showUI :: forall eff. (Option -> Eff eff Options) | |
main = do | |
options <- showUI Local | |
case options of | |
Local -> log "local" | |
Seasonal -> log "Seasonal" | |
LongDistance -> log "LongDistance" | |
--- JS --- | |
exports.showUI = function(screenName) { | |
return function() { | |
console.log(screenName.constructor.name) | |
return "Local". | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment