Created
October 1, 2014 15:54
-
-
Save etaque/78eb1e0d7743c96da63e to your computer and use it in GitHub Desktop.
Reproduction for Elm bug #793
This file contains hidden or 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 Foo where | |
type Bar = { baz : Maybe Float } |
This file contains hidden or 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
<html> | |
<body> | |
<script src="./build/Main.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
var game = Elm.fullscreen(Elm.Main, { input: {"baz": 1} }); | |
</script> | |
</body> | |
</html> |
This file contains hidden or 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
import Foo | |
port input : Signal Foo.Bar | |
main = lift asText input |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elm files to be compiled with
elm --only-js --bundle-runtime --make Main.elm