Commit graph

94 commits

Author SHA1 Message Date
Evan Czaplicki
9dd5dff279 Make AST more general and try to give its phases better names
Also change the constructors for the Pattern ADT
2014-02-10 00:17:33 +01:00
Max New
0c405e9b72 bump restrictive dependencies 2014-02-04 16:39:09 -06:00
Evan Czaplicki
5c6882dbd6 Bump version number 2014-01-20 22:47:14 +01:00
Evan Czaplicki
32fbbca5b2 Generate conversion code for ports 2014-01-13 19:32:54 +01:00
Evan Czaplicki
170006534d Rename InterfaceSerialization file and change the function names in it 2014-01-04 15:19:30 +01:00
Evan Czaplicki
7cf5a564e5 Add Expressions for ports to check and validate types nicely 2014-01-04 11:39:38 +01:00
Evan Czaplicki
a5f7944c2a Add the new Transform files 2014-01-03 12:08:58 +01:00
Evan Czaplicki
600e65ca43 Get rid of Transform.Optimize, which is currently unused 2014-01-02 23:13:37 -08:00
Evan Czaplicki
6dec2ae0fa Merge branch 'master' into dev 2014-01-02 12:24:35 -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
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
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
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
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
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
dac51abc88 Finish refactoring code into Build/ directory, make some names more consistent and remove unneeded dependencies 2013-12-14 23:29:39 -08:00
Evan Czaplicki
983954fb19 Add -threaded and -O2 back to resolve build issue on some machines that default to using single threaded runtime 2013-12-13 11:15:37 -08:00
Evan Czaplicki
47c6cbc38f Merge branch 'master' into dev 2013-11-26 00:12:42 -06:00
Evan Czaplicki
9633af6723 Add Generate.Markdown to .cabal file, remove -O2 flag 2013-11-25 23:48:20 -06:00
Evan Czaplicki
b1bca38488 Get rid of either-unwrap dependency and use fewer non-total library functions 2013-11-04 13:26:05 +01:00
Evan Czaplicki
0ffd3e20dd Merge pull request #319 from johnpmayer/dev
language-ecmascript before v0.15 does not have the Pretty(prettyPring) c...
2013-11-04 02:31:50 -08:00
Justin Leitgeb
c845e586ed Give more helpful error messages when deserializing elmi files
Provides an error message indicating incorrect compiler version or corrupt file.
Exit status will be 1 in either failure case and error message is printed to
stderr. Uses the same checks against interfaces.data as well as standard .elmi
files since both are susceptible to breaking in the same way.

The following will be displayed when an elmi file has a different compiler
version than the elm compiler that tries to load it:

    justin ~/Code/elm-lang.org/public/examples/Intermediate $ ~/Code/elm/dist/build/elm/elm Pong.elm
    Found build artifacts created by a different Elm compiler version. Please rebuilt cache/Pong.elmi and try again.

The following will be displayed when a file that cannot be deserialized is
encountered:

    justin ~/Code/elm-lang.org/public/examples/Intermediate $ ~/Code/elm/dist/build/elm/elm Pong.elm
    Got an error, 'demandInput: not enough bytes' at offset 10303 of cache/Pong.elmi.

    This error may be due to an outdated or corrupt artifact from a previous build. Please rebuild cache/Pong.elmi and try again.
2013-11-03 20:35:10 -05:00
John P Mayer Jr
2ad4394eb1 language-ecmascript before v0.15 does not have the Pretty(prettyPring) class 2013-11-02 13:47:53 -04:00
Evan Czaplicki
5f82630ebc Add bounds on language-ecmascript 2013-10-26 22:12:48 +02:00
Evan Czaplicki
7435e310af Bump version number 2013-10-24 18:33:26 +02:00
Evan Czaplicki
56877c0892 Bump the version number to 0.10 2013-10-18 16:08:38 -04:00
Evan Czaplicki
66c288e4ba Remove minification from compiler.
Unix philosophy and all that.
2013-09-28 15:36:02 -04:00
Evan Czaplicki
ba7bd386ee It's 2013 everyone! 2013-09-13 12:09:10 -07:00
Evan Czaplicki
4ca3dbabdd Start generating documentation again. Does not work on all libraries yet, but should go through. 2013-09-10 18:47:03 -07:00
Evan Czaplicki
5b2c4f6fb8 Begin generating JSON representations of types. 2013-09-05 15:33:03 -07:00
Evan Czaplicki
ae5ef9db97 Add pretty printing and require a module declaration and structure comment 2013-09-05 10:48:37 -07:00
Evan Czaplicki
4f7bb237ca Begin building elm-doc again 2013-09-04 17:40:29 -07:00
Evan Czaplicki
2a5a33712a Get rid of Unique and add language-ecmascript 2013-08-31 13:12:52 -07:00
Evan Czaplicki
e6be50ecc0 Add the Type.Alias file to do realiasing when printing types 2013-08-21 19:07:03 -07:00
Evan Czaplicki
4da7588d10 Add the ExtraChecks module to do occurs check and check the type of main 2013-08-19 16:54:46 -07:00
Evan Czaplicki
2dc78fc904 Clean up after testing 2013-08-16 03:26:51 -07:00
Evan Czaplicki
efd42c386b Bare minimum framework for testing 2013-08-14 17:41:02 -07:00
Evan Czaplicki
a46432f30a Make the Main module runable 2013-08-13 18:38:01 -07:00
Evan Czaplicki
1e0294eea4 Move to 0.9.0.2 2013-08-10 14:21:34 -07:00
Evan Czaplicki
e81e0c4424 move the home of the data files out of dist/ (cabal complained) 2013-08-09 23:20:22 -07:00
Evan Czaplicki
5e6481ccfd Bump to 0.9 2013-08-09 00:57:57 -07:00
Evan Czaplicki
0e89c32b8e Compile threaded with O2 2013-08-02 22:21:06 -07:00
Evan Czaplicki
6aa9fc07a2 Trim unused dependencies 2013-08-02 17:41:18 -07:00
Evan Czaplicki
8000b8b4b9 Stop exposing the QuasiQuoting library.
I have not looked at this code in many versions, so I don't think it's
good for me to keep "maintaining" it even though I don't think people
should really use this.
2013-08-02 17:37:30 -07:00
Evan Czaplicki
4eed8e424b Fix the .cabal file, include many new files 2013-07-31 12:12:06 -07:00
Evan Czaplicki
2c96bf0c33 Get the haskell library working 2013-07-31 09:31:48 -07:00
Evan Czaplicki
5c81d14efe Update dependencies and comment out things that slow the build and are unnecessary for testing 2013-07-29 12:00:30 +02:00