Move the compiler down a directory, mostly.
commit1822ebc16035465820141b12f7cc77d619a65e74
authorevancz <info@elm-lang.org>
dateSat 16 Mar 2013, 12:04 (14 years ago)
parent602bffa
compiler/Elm.cabal → Elm.cabalrenamed
The content is the same.
compiler/LICENSE → LICENSErenamed
The content is the same.
compiler/Setup.hs → Setup.hsrenamed
The content is the same.
compiler/src/Ast.hs → compiler/Ast.hsrenamed
The content is the same.
compiler/src/Compiler.hs → compiler/Compiler.hsrenamed
The content is the same.
compiler/src/Docs.hs → compiler/Docs.hsrenamed
The content is the same.
compiler/src/Gen/Cases.hs → compiler/Gen/Cases.hsrenamed
The content is the same.
compiler/src/Gen/CompileToJS.hs → compiler/Gen/CompileToJS.hsrenamed
The content is the same.
compiler/src/Gen/ExtractNoscript.hs → compiler/Gen/ExtractNoscript.hsrenamed
The content is the same.
compiler/src/Gen/GenerateHtml.hs → compiler/Gen/GenerateHtml.hsrenamed
The content is the same.
compiler/src/Initialize.hs → compiler/Initialize.hsrenamed
The content is the same.
compiler/src/Language/Elm.hs → compiler/Language/Elm.hsrenamed
The content is the same.
compiler/src/Language/Elm/Quasi.hs → compiler/Language/Elm/Quasi.hsrenamed
The content is the same.
compiler/src/Parse/Binops.hs → compiler/Parse/Binops.hsrenamed
The content is the same.
compiler/src/Parse/Expr.hs → compiler/Parse/Expr.hsrenamed
The content is the same.
compiler/src/Parse/Foreign.hs → compiler/Parse/Foreign.hsrenamed
The content is the same.
compiler/src/Parse/Library.hs → compiler/Parse/Library.hsrenamed
The content is the same.
compiler/src/Parse/Modules.hs → compiler/Parse/Modules.hsrenamed
The content is the same.
compiler/src/Parse/Parser.hs → compiler/Parse/Parser.hsrenamed
The content is the same.
compiler/src/Parse/Patterns.hs → compiler/Parse/Patterns.hsrenamed
The content is the same.
compiler/src/Parse/Types.hs → compiler/Parse/Types.hsrenamed
The content is the same.
compiler/src/Types/Alias.hs → compiler/Types/Alias.hsrenamed
The content is the same.
compiler/src/Types/Constrain.hs → compiler/Types/Constrain.hsrenamed
The content is the same.
compiler/src/Types/Hints.hs → compiler/Types/Hints.hsrenamed
The content is the same.
compiler/src/Types/Solver.hs → compiler/Types/Solver.hsrenamed
The content is the same.
compiler/src/Types/Substitutions.hs → compiler/Types/Substitutions.hsrenamed
The content is the same.
compiler/src/Types/Types.hs → compiler/Types/Types.hsrenamed
The content is the same.
compiler/src/Types/Unify.hs → compiler/Types/Unify.hsrenamed
The content is the same.
compiler/src/Context.hs → compiler/src/Model/Context.hsrenamed
The content is the same.
compiler/src/Guid.hs → compiler/src/Model/Guid.hsrenamed
The content is the same.
compiler/src/LetBoundVars.hs → compiler/src/Transform/LetBoundVars.hsrenamed
The content is the same.
compiler/src/Optimize.hs → compiler/src/Transform/Optimize.hsrenamed
The content is the same.
compiler/src/Rename.hs → compiler/src/Transform/Rename.hsrenamed
The content is the same.
compiler/src/Replace.hs → compiler/src/Transform/Replace.hsrenamed
The content is the same.
compiler/src/Substitute.hs → compiler/src/Transform/Substitute.hsrenamed
The content is the same.
libraries/Native/Prelude.js+13−1
@@ -67,7 +67,7 @@ Elm.Prelude = function(elm) {
6767 return Maybe.Just(parseFloat(s));
6868 }
6969
70− return elm.Prelude = {
70+ var prelude = {
7171 div:F2(div),
7272 rem:F2(rem),
7373 mod:F2(mod),
@@ -110,4 +110,16 @@ Elm.Prelude = function(elm) {
110110 fst:fst,
111111 snd:snd
112112 };
113+
114+ function add(Module) {
115+ var M = Module(elm);
116+ for (var k in M) { prelude[k] = M[k] }
117+ }
118+ add(Elm.Signal);
119+ add(Elm.List);
120+ add(Elm.Maybe);
121+ add(Elm.Time);
122+ add(Elm.Graphics);
123+
124+ return elm.Prelude = prelude;
113125};