Commit graph

2157 commits

Author SHA1 Message Date
Max New
6511fc0e97 Refactor Build.File using monad transformers 2013-12-30 16:09:41 -06:00
Evan Czaplicki
b0a856eb5f Merge pull request #421 from maxsnew/test
Test Re-org and Start Property Testing
2013-12-30 00:27:50 -08:00
Max New
dcac0e0d5c Style tweaks and use cross-platform file name construction. 2013-12-30 02:19:02 -06:00
Max New
37f5d9e1ea Make parse/print test more stringent, tweak Float gen. 2013-12-29 22:11:19 -06:00
Max New
d003062586 Pattern pretty printer prints syntactically correct code.
Include auto-generated test case that was previously broken.
2013-12-29 20:46:20 -06:00
Max New
24751a3d85 Add parse/print tests for Patterns. 2013-12-29 20:18:45 -06:00
Evan Czaplicki
56324bf699 Update version numbers for standard library 2013-12-29 15:35:26 -08:00
Max New
2da9009512 Setup QuickCheck and add Literal Parse/Print test
Currently fails the prop tests: https://github.com/evancz/Elm/issues/420

Also ignore emacs backup files.
2013-12-29 16:50:41 -06:00
Evan Czaplicki
5b7f442584 Bump version number 2013-12-29 13:41:39 -08:00
Evan Czaplicki
9dfcb507db Merge branch 'dev' 2013-12-29 13:23:17 -08:00
Evan Czaplicki
e34245ae3a Cosmetic: add a space 2013-12-29 13:22:54 -08:00
Max New
1408d928d5 Re-org tests 2013-12-29 15:17:49 -06:00
Max New
840eca6573 Migrate tests to test-framework and make them more specific.
Use test-framework as it's more widely used/has better support for
HUnit/QuickCheck.

Make test cases test the `compile` function explicitly instead of the
elm executable as that's all they're actually intended to test.
2013-12-29 13:44:25 -06:00
Evan Czaplicki
f26610b718 Properly handle pattern matching on non-tuple ADTs in let-expressions, esolving issue #417 2013-12-27 16:14:21 -08:00
Evan Czaplicki
a5b486c56d Use the github sanctioned name for this file, based on new facts from @devth 2013-12-24 10:27:45 -08:00
Evan Czaplicki
4e23dc6a08 Mess with documentation for empty 2013-12-24 10:16:17 -08:00
Evan Czaplicki
71bb1c8bf9 Add basics of properly handling ports 2013-12-24 10:13:19 -08:00
Evan Czaplicki
6db931849d Merge pull request #404 from maxsnew/empty
Add empty element
2013-12-24 10:11:26 -08:00
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
Max New
6992d941c7 Add empty element 2013-12-20 23:35:36 -06: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
4b22dbb33a Fix typo pointed out by @mgold. Thanks! 2013-12-20 10:07:52 -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
60f67d6920 Clarify instal directions a bit 2013-12-19 14:14:17 -08:00
Evan Czaplicki
65dd54c99e add haskell platform link again 2013-12-19 14:09:49 -08:00
Evan Czaplicki
a3a5cd933f Update README.md 2013-12-19 14:08:39 -08:00
Evan Czaplicki
02bd3a5e34 Update README.md 2013-12-19 14:05:52 -08:00
Evan Czaplicki
ca672f6e46 Keep general instructions on main page 2013-12-19 14:04:03 -08:00
Evan Czaplicki
99683b9434 Merge pull request #398 from fosskers/master
Added link to new Installation instructions
2013-12-19 13:17:51 -08:00
Colin Woodbury
6b6147afb8 Added link to new Installation instructions 2013-12-20 06:06:38 +09:00
Evan Czaplicki
c8854a9935 Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-12-19 11:44:59 -08:00