File "src/hello.re", line 1:
Error: The files /Users/pgowda/bucklescript-addons/examples/reason-demo/node_modules/bucklescript-tea/lib/ocaml/tea.cmi
and /Users/pgowda/bucklescript-addons/examples/reason-demo/node_modules/bs-platform/lib/ocaml/js.cmi
make inconsistent assumptions over interface Js
Last active
February 5, 2017 05:33
-
-
Save btbytes/fb091944ffb7e4eb4ccb769869d315b4 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
open Tea.App; | |
open Tea_html; | |
type person = {mutable name: string}; | |
let model:person = {name: "P G"}; | |
let view = fun (model) => | |
text "Hello world"; | |
let update = fun (model) => { | |
model; | |
}; | |
let main = | |
beginnerProgram { | |
model:model, | |
view:view, | |
update: update | |
}; |
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
{ | |
"devDependencies": { | |
"grunt": "^0.4.5", | |
"grunt-contrib-jshint": "~0.10.0", | |
"grunt-contrib-nodeunit": "~0.4.1", | |
"grunt-contrib-uglify": "~0.5.0", | |
"reason": "git+https://github.com/facebook/reason.git", | |
"webpack": "^2.2.1" | |
}, | |
"dependencies": { | |
"@opam-alpha/merlin": "^ 2.5.0", | |
"@opam-alpha/ocaml": "4.2.3", | |
"bs-platform": "1.4.2", | |
"bucklescript-tea": "^0.2.0", | |
"dependency-env": "https://github.com/reasonml/dependency-env.git", | |
"nopam": "https://github.com/reasonml/nopam.git", | |
"ocamlBetterErrors": "0.0.10", | |
"realpath": "*", | |
"reason": "https://github.com/facebook/reason.git", | |
"rebel": "https://github.com/reasonml/rebel.git" | |
}, | |
"scripts": { | |
"build": "source dependencyEnv && ./node_modules/bs-platform/jscomp/bin/bsc.exe -pp refmt -bs-package-include bucklescript-tea -impl src/hello.re", | |
"webpack": "node_modules/.bin/webpack", | |
"top": "eval $(dependencyEnv) && rtop", | |
"env": "eval $(dependencyEnv) && env", | |
"editor": "eval $(dependencyEnv) && eval $EDITOR", | |
"whereisocamlmerlin": "eval $(dependencyEnv) && which ocamlmerlin-reason" | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment