Commit graph

1830 commits

Author SHA1 Message Date
Evan Czaplicki
740702c0d7 Begin switch from current FFI syntax to "port" syntax 2013-12-23 23:53:54 -08:00
Evan Czaplicki
fcbd7fd73b Improve some parser code by adding type annotations, removing unused dependencies, and using prefixed imports 2013-12-23 23:26:03 -08:00
Evan Czaplicki
0486c90bd3 Merge branch 'dev' into deriving 2013-12-23 17:03:05 -08:00
Evan Czaplicki
51ee065e6b Cosmetic: give function a more descriptive name 2013-12-23 17:02:47 -08:00
Evan Czaplicki
230c695231 Merge pull request #412 from maxsnew/otherwise
Expand `else` to `True` instead of `otherwise`.
2013-12-23 17:00:58 -08:00
Max New
647cf279a1 Optimize True branch in multi-way if code generation. 2013-12-23 18:57:23 -06:00
Evan Czaplicki
83e8bad84f Add basics of "deriving" for ADTs and type aliases. Only parse it for type aliases at the moment. 2013-12-23 16:51:15 -08:00
Max New
254d71f4e5 Expand else to True instead of otherwise.
Makes `if` syntax independent of the value of `otherwise`.
Includes test case.
2013-12-23 18:31:55 -06:00
Evan Czaplicki
32c78efe7d Begin process of allowing "deriving" on type aliases. 2013-12-23 14:42:43 -08:00
Evan Czaplicki
171f199db3 Merge branch 'dev' into json 2013-12-23 13:01:21 -08:00
Evan Czaplicki
e119d8ef62 Get rid of SourceSyntax.Everything module 2013-12-22 15:18:16 -08:00
Evan Czaplicki
f8bf89b48d Make sure that all names in a program are safe for use in JS code 2013-12-22 15:00:29 -08:00
Evan Czaplicki
e690c427b7 Add deriving as a reserved word 2013-12-21 23:55:33 -08:00
Evan Czaplicki
7def8158c1 Merge pull request #408 from timthelion/parserQuoteFix
Fix bug in parser
2013-12-21 22:37:43 -08:00
Evan Czaplicki
384f86faa1 Add note about how to request features to the main repo 2013-12-21 14:48:53 -08:00
Timothy Vladimír Hobbs
cbbd42d3f3 Fix bug in parser
34913d5 broke the parser in the following case:

f = '\"'

This commit fixes that.
2013-12-21 23:21:10 +01:00
Evan Czaplicki
7b20993869 Get rid of dependency on uniplate so AST does not need to derive Data or Typeable
This is motivated by wanting to add things to the AST that cannot
derive Data or Typeable
2013-12-20 16:41:06 -08:00
Evan Czaplicki
39769b77af Merge pull request #399 from mgold/char-compare
Fix Char comparisons
2013-12-19 18:53:07 -08:00
Max Goldstein
460fe0d3a4 Further optimizations 2013-12-19 21:47:16 -05:00
Max Goldstein
c6fbc8df24 Use instanceof for performance 2013-12-19 19:55:41 -05:00
Evan Czaplicki
3686c82738 Add note about no sharing between top-level and let-bound type variables 2013-12-19 15:04:41 -08:00
Evan Czaplicki
2874797ddb Go to original error style. I think it's nicer. 2013-12-19 14:45:52 -08:00
Evan Czaplicki
c8854a9935 Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-12-19 11:44:59 -08:00
Evan Czaplicki
34913d5340 Fix issue #397. Core issue was that scanning for infix declarations was not clever about strings. 2013-12-19 10:41:31 -08:00
Evan Czaplicki
5071f0f8d6 Merge pull request #393 from maxsnew/dict
Add efficient update function for Dict
2013-12-19 10:09:57 -08:00
Max New
33b39a30db Implement more general Dict update. 2013-12-19 04:16:00 -06:00
Evan Czaplicki
ac6c5bc04a Get rid of check on how many exposed modules. That's for validation elsewhere 2013-12-19 01:48:26 -08:00
Evan Czaplicki
ab53fac3c4 Add note about how to interpret JS functions 2013-12-18 23:35:14 -08:00
Max New
bb3d0dc566 Add efficient update function for Dict 2013-12-18 22:02:02 -06:00
Max Goldstein
fac00f66c4 Fix Char comparisons
Fixes evancz/Elm#392
2013-12-18 21:39:46 -05:00
Evan Czaplicki
32e7d1da03 Get rid of dead code in Prelude. Need to figure out how to kill prelude entirely. 2013-12-18 12:53:11 -08:00
Evan Czaplicki
5aedf723ec Take Automaton out of standard libraries for now 2013-12-18 12:52:47 -08:00
Evan Czaplicki
16aef1ea0c Switch away from using Text.Blaze.Html.Renderer.Utf8 because it scrambles some things. 2013-12-17 17:43:06 -08:00
Evan Czaplicki
82d3d88d01 Get syntax highlighting on code blocks working again. 2013-12-17 16:19:42 -08:00
Evan Czaplicki
37afd0d6a5 Merge pull request #391 from ivanov/typos
Typos
2013-12-17 15:47:32 -08:00
Paul Ivanov
b77fd96d68 fix typos in Graphics 2013-12-17 15:44:58 -08:00
Paul Ivanov
bb851314ab more typos 2013-12-17 15:44:45 -08:00
Paul Ivanov
70e861818d fix typo in docs 2013-12-17 15:40:31 -08:00
Evan Czaplicki
123fb9440d Improve documentation for the new libraries 2013-12-17 15:20:39 -08:00
Evan Czaplicki
68d41ba1bc create file for uploading standard library to library.elm-lang.org 2013-12-17 13:59:38 -08:00
Evan Czaplicki
f1f5744f5b Add note about short-circuiting with (&&) and (||) 2013-12-17 13:59:19 -08:00
Evan Czaplicki
a3cb09a0c1 Add instances for generating JSON 2013-12-17 12:16:40 -08:00
Evan Czaplicki
26a8c82b6f Get rid of Build.Info file, move compiler version to Elm.Internal.Version and use Elm's version conventions 2013-12-17 11:36:05 -08:00
Evan Czaplicki
b9056797ec Add link to example program. 2013-12-17 10:59:45 -08:00
Evan Czaplicki
16e6654af8 Require minimal deps file when just building things locally 2013-12-16 14:41:05 -08:00
Evan Czaplicki
87bf14f268 Switch to using elm_dependencies.json to search for additional src-dirs 2013-12-16 03:03:52 -08:00
Evan Czaplicki
8a46ead147 Add dependencies field to Deps 2013-12-16 03:03:04 -08:00
Evan Czaplicki
3c1b9f7171 Adopt "model" code from elm-get so that dependencies can be crawled from the compiler. 2013-12-15 23:55:36 -08:00
Evan Czaplicki
61ff49067f Guard against issue #387 2013-12-15 19:14:00 -08:00
Evan Czaplicki
fe7e3195fa Automatically look in elm_dependencies/ and use the latest version available 2013-12-15 01:37:51 -08:00