Commit graph

586 commits

Author SHA1 Message Date
evancz
79a747cfc6 Rename core/ to libraries/ to make it more clear what is going on with the directory structure. 2013-03-06 09:28:53 -08:00
evancz
83142e4b8a Refactor the main module generating code. 2013-03-06 09:25:23 -08:00
evancz
ea4fe54a2a Rename Form to Collage. Add the LineStyle module. 2013-03-06 09:24:17 -08:00
evancz
d10dcdc820 Reorganize Json modules to make it clear that the record conversion is still experimental. 2013-03-06 09:22:59 -08:00
evancz
71f83d394e Get rid of the FillStyle module. Move gradients to Color and everything else to Form.
Create the Geometry module which describes paths and shapes. Not sure if this module is a good idea.
2013-03-05 19:46:35 -08:00
evancz
0fbfab7d7c Get Text module working. Move Color into Graphics/. Have Element as a parent module of Text, Form, etc. providing the raw materials but letting functions like collage : ... -> Element and centered : Text -> Element live in dependencies. 2013-03-05 10:06:52 -08:00
evancz
d2abba0980 Switch the order of two functions. 2013-03-03 07:56:23 -08:00
evancz
39b3fcb034 Use a shorter name for Native.List in the List module 2013-03-03 07:55:37 -08:00
evancz
965162e529 Fix a syntax error in the Native.List module. 2013-03-03 07:54:37 -08:00
evancz
8800fa30c0 Clean up the Json APIs. Permit conversion from JS strings to records. 2013-03-02 21:43:44 -08:00
evancz
c40d2e4cbf Begin getting the new graphics libs in order. 2013-03-02 14:07:45 -08:00
evancz
58275b0002 Use new function call format in more places. 2013-03-02 09:18:36 -08:00
evancz
3926066a64 Begin placing JS errors in the core libs instead of in the compiler. 2013-03-02 09:16:45 -08:00
evancz
c136ea733e Faster case expressions, and switch to the new uncurried format for function definitions. 2013-02-28 08:56:21 -08:00
evancz
9eddb7a3bd Add the native function module and transform the list library to use it. 2013-02-27 09:46:25 -08:00
evancz
c5519e3046 Change semantics of import:
- No more 'hiding'
- 'import' means allow the use of a the module, not import everything

Make the --make command more robust. Begin making it possible to read Native files in core.

Switch representation of let-expressions to no longer use an anonymous function. This is significantly faster!

Begin disallowing undefined variables (stop passing escapees around so much).
2013-02-26 23:33:47 -08:00
evancz
389a6f5309 Add a number of core modules, begin defining module names in .js files. 2013-02-26 23:26:28 -08:00
evancz
45586e0738 Rename a file to LetBoundVars.hs to extract only variable names defined in let expressions. 2013-02-26 23:25:24 -08:00
evancz
30ad0fb847 Add Value.js as the native misc module. Lots of dependencies and contents that should be moved to more reasonable places. 2013-02-23 01:02:56 +01:00
evancz
d53cecf3ba List module dependencies in elm and js code.
Planning on having the compiler crawl through to determine dependencies, then compile everything in an appropriate order. This will also let me print out compiler progress in a reasonable order.
2013-02-23 00:19:40 +01:00
evancz
c710179a3a Add date lib and clean up some existing modules. 2013-02-22 00:33:53 +01:00
evancz
62d30f24b8 Update mouse code. 2013-02-21 23:43:32 +01:00
evancz
8d26a1d5cc Add and fix up the Keyboard inputs. 2013-02-21 09:40:41 +01:00
evancz
9c105aeb9b Switch to new ADT format 2013-02-20 23:39:00 +01:00
evancz
05c6e2da98 Begin using new data format for ADTs. Should be significantly faster while actually being nicer to read. 2013-02-20 23:38:14 +01:00
evancz
54ffaab4fa Begin migrating signals over to new module format and to use new ADT structure. 2013-02-20 23:36:16 +01:00
evancz
7b7b136002 Increase version number. 2013-02-10 14:01:15 -08:00
evancz
6b1285036e Switch to a much more performant representation for records. 2013-02-10 13:48:31 -08:00
evancz
cb609ea583 Get the color library in order. Remove the silly lifty functions from Automaton. 2013-02-10 03:58:40 -08:00
evancz
23860c9852 Reformat 2 lines. 2013-02-10 03:29:59 -08:00
evancz
e05e9c5aca Split the List library into Elm and JS code. Do profiling for many functions (map, foldr, filter, length, zipWith, scanl, last, take, reverse) and get some nice speedups. 2013-02-10 01:45:45 -08:00
evancz
784ada68a8 Add the native list code. 2013-02-09 20:40:23 -08:00
evancz
1f89dce93a Rename core-elm to core, beginning the transitions to a standard library written primarily in Elm. 2013-02-09 20:40:05 -08:00
evancz
04b521ab49 Add two type annotations. 2013-02-09 20:36:57 -08:00
evancz
5349b404f9 Merge branch 'master' of https://github.com/evancz/Elm 2013-02-09 13:02:59 -08:00
evancz
50ddf4cddc Make sure that variables generated during parsing are less likely to overlap. This is not a pretty fix, but it is better than the previous system. 2013-02-09 13:02:24 -08:00
Evan Czaplicki
ae2abc186e Merge pull request #95 from vbychkovsky/master
Fixed elm-happstack examples
2013-02-09 10:49:40 -08:00
evancz
6d8a50d326 Fix the type of Either, addressing copy-paste error. 2013-02-09 10:45:16 -08:00
evancz
dd9d219655 Begin upgrading the List library. It is not complete though. List.js should be the final authority on what is native and what is not. 2013-02-08 22:17:39 -08:00
Vladimir Bychkovsky
1c918a7053 Merge https://github.com/evancz/Elm 2013-02-08 13:22:53 -05:00
Vladimir Bychkovsky
d813e0589a serving elm-runtime locally (using a fixed path to avoid monads) 2013-02-08 13:19:14 -05:00
Vladimir Bychkovsky
c954a0fcd8 Updated strings to refer to Happstack instead of Yesod 2013-02-08 12:13:34 -05:00
Vladimir Bychkovsky
149e91eb2a Fixed splicing and removed "box" + minor other changes 2013-02-08 12:07:44 -05:00
evancz
43fd6c4326 Properly resolve cyclic dependencies. 2013-02-08 01:33:21 -08:00
evancz
a8850d62df Add type annotations to the Set library. 2013-02-07 20:23:25 -08:00
Vladimir Bychkovsky
13a38d97c3 minor fix to clock 2013-02-07 23:01:23 -05:00
Vladimir Bychkovsky
e0d565005a updated syntax in the mouse example 2013-02-07 22:18:44 -05:00
evancz
c02228fbd0 Merge branch 'master' of https://github.com/evancz/Elm 2013-02-07 10:55:39 -08:00
evancz
cdecb5bf30 Update the list of built-in modules. 2013-02-07 10:55:08 -08:00
evancz
4858cfa8d8 Fix a messed up type annotation in Dict.elm. 2013-02-07 10:54:47 -08:00