Move the compiler down a directory, mostly.

This commit is contained in:
evancz 2013-03-16 12:04:05 -07:00
parent 602bffa623
commit 1822ebc160
36 changed files with 13 additions and 1 deletions

View file

@ -67,7 +67,7 @@ Elm.Prelude = function(elm) {
return Maybe.Just(parseFloat(s));
}
return elm.Prelude = {
var prelude = {
div:F2(div),
rem:F2(rem),
mod:F2(mod),
@ -110,4 +110,16 @@ Elm.Prelude = function(elm) {
fst:fst,
snd:snd
};
function add(Module) {
var M = Module(elm);
for (var k in M) { prelude[k] = M[k] }
}
add(Elm.Signal);
add(Elm.List);
add(Elm.Maybe);
add(Elm.Time);
add(Elm.Graphics);
return elm.Prelude = prelude;
};