Skip to content

Instantly share code, notes, and snippets.

@etaque
Created October 1, 2014 15:54
Show Gist options
  • Save etaque/78eb1e0d7743c96da63e to your computer and use it in GitHub Desktop.
Save etaque/78eb1e0d7743c96da63e to your computer and use it in GitHub Desktop.
Reproduction for Elm bug #793
module Foo where
type Bar = { baz : Maybe Float }
<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>
import Foo
port input : Signal Foo.Bar
main = lift asText input
@etaque
Copy link
Author

etaque commented Oct 1, 2014

Elm files to be compiled with elm --only-js --bundle-runtime --make Main.elm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment