Skip to content

Instantly share code, notes, and snippets.

@btbytes
Last active February 5, 2017 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btbytes/fb091944ffb7e4eb4ccb769869d315b4 to your computer and use it in GitHub Desktop.
Save btbytes/fb091944ffb7e4eb4ccb769869d315b4 to your computer and use it in GitHub Desktop.
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

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
};
{
"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