Commit graph

586 commits

Author SHA1 Message Date
evancz
c5da28341c Add Either library, change Maybe API, and add tap to Touch library. 2013-01-25 11:26:58 -08:00
evancz
7014d534be Minify RTS and bump version number. 2013-01-25 10:42:52 -08:00
evancz
2af52672e3 Make Pong more concise. 2013-01-25 03:23:04 -08:00
evancz
db7e6177e0 Update to work with pandoc >= 1.10. Hopefully this is not another annoying change in which people cannot get 1.10 working on their machine. 2013-01-25 02:31:41 -08:00
evancz
484e7ab4ef Latest RTS 2013-01-25 01:28:26 -08:00
evancz
0048be9733 Fix silly error with mergeEither. 2013-01-25 01:28:08 -08:00
evancz
c8669039ee Add xor to runtime. 2013-01-16 11:34:30 -08:00
evancz
6ed5808490 Remove extra parens! Was a parse error :| 2013-01-15 21:40:12 -08:00
evancz
b888abb4b9 Merge branch 'master' of https://github.com/evancz/Elm 2013-01-15 21:09:42 -08:00
Evan Czaplicki
b951fe0b88 Merge pull request #78 from dobesv/master
Change throw "..." to throw new Error("...") in the generated Javascript code
2013-01-15 21:09:04 -08:00
evancz
6873bc6b5b Add xor function. 2013-01-15 19:49:07 -08:00
Dobes Vandermeer
87be39793b Change throw "..." to throw new Error("...")
When throwing plain strings, the stack trace and original location of
the error seems to get lost, and you can't click on the exception in the
Firebug logs to jump to where the exception was thrown.
2013-01-15 15:23:32 -08:00
evancz
c77b390f8f Update runtime. 2013-01-14 00:15:24 -08:00
evancz
9f47e87bac Add type hints for new libraries, and fix the types of fps and fpsWhen. 2013-01-14 00:15:14 -08:00
evancz
39e235226e Ensure that touch listener is detached if it is not used. 2013-01-14 00:14:28 -08:00
evancz
b1d708749e Add the mergeEither signal and remove some dead code from Touch.js. 2013-01-13 19:27:55 -08:00
evancz
9b3ff32100 Switch how ADT's are displayed. Should have no visible effect. 2013-01-13 12:21:07 -08:00
evancz
45e865b78b Add Either library, change Maybe API, and add tap to Touch library. 2013-01-09 02:07:46 -08:00
evancz
c21fec2641 Add the 0.7.1 RTS which includes the new Keyboard and Touch signals. 2013-01-07 00:48:20 -08:00
evancz
c0deb91a57 Get the touch library working, and bump the version number to 0.7.1. 2013-01-07 00:47:16 -08:00
evancz
c7928f231e Fix bug in Automaton.js 2013-01-07 00:46:29 -08:00
evancz
b6fc63e9c8 Add new keyboard signals:
shift, ctrl, space :: Signal Bool
2013-01-06 16:54:11 -08:00
evancz
d4ba8068d5 Ensure that gifs work in collages in all browsers.
Add the `arrows` and `wasd` values to the Keyboard library. Makes it way way easier to deal with directional input.
2013-01-06 04:21:29 -08:00
evancz
5bf237d903 * Fix renaming issue with a1, a2, etc. as described in [issue 75](https://github.com/evancz/Elm/issues/75)
* Switch to using $ instead of _ when depriming variables.

* Bump version number
2013-01-05 16:27:36 -08:00
evancz
5e4aa74cfc Minify RTS 2013-01-03 10:38:55 -08:00
evancz
c57c60269b Remove some unsafe printing. 2013-01-03 00:31:03 -08:00
evancz
eeb5df4a3a Fix the Open Street Map example. 2013-01-03 00:30:46 -08:00
evancz
0205998492 Add parsing for record types. 2013-01-03 00:30:28 -08:00
evancz
9ecb6a7052 Simplify code for occurs check. 2013-01-03 00:28:54 -08:00
evancz
6af3eb3f5f Fix bug with importing DOM nodes. 2013-01-03 00:27:38 -08:00
evancz
e72958a654 Get rid of FrameRate example which has been replaced by fps function. 2013-01-02 23:46:14 -08:00
evancz
eeeaad8490 Enable record pattern matching in let-expressions, and fix a toJS error in which records added a newline that could cause them to be parsed weirdly by JS. 2012-12-28 05:24:00 -06:00
evancz
cbfbd0a29b Bump version number to 0.7. 2012-12-26 16:14:24 -06:00
evancz
c231fc35cd Add ability to add and remove fields from records:
{ book - title }
    { book | pages = 100 }

From these we can derive renaming fields and replacing values:

    { book - title | name = book.title }
    { book - title | title = "Harry Potter" }

There is no syntactic short-cut to batch addition and removal of fields in a single expression.

There is already a convenient syntax for record updates added
in a previous push that lets you do batch updates:

    { book | title <- "Steppenwolf"
           , author <- "Hermann Hesse" }
2012-12-26 16:07:09 -06:00
evancz
de6cb460cd Add record modification syntax:
{ book | title <- "Harry Potter" }

Allows you to change the type of a field.
2012-12-25 03:45:02 -06:00
evancz
ec94f4ecc5 Add Context module. 2012-12-25 02:40:41 -06:00
evancz
6cc617b0ab Add line and column number for type errors and "non-exhaustive" errors.
Add support for the basics of records:

r = { x = 3, f x = x + 1 }
r.x == 3
map .x [r,r,r] == [3,3,3]
2012-12-25 02:39:18 -06:00
evancz
6443ed9ae7 Merge branch 'master' of https://github.com/evancz/Elm 2012-12-17 20:46:55 -08:00
evancz
fd536b993b Add the beginning of a touch and Form library. 2012-12-17 20:44:57 -08:00
Evan Czaplicki
e9f5f0c358 Merge pull request #69 from d-snp/cat
add shell script to compile core-js
2012-12-16 16:36:10 -08:00
Evan Czaplicki
eb69c9242c Merge pull request #68 from d-snp/new-happstack
use happstack 7.1.1
2012-12-16 16:35:37 -08:00
Evan Czaplicki
c2acf71b1a Add type hints for (<~) and (~). 2012-12-14 19:59:50 -08:00
Evan Czaplicki
22a63628fe Add translations for signal binops 2012-12-14 19:55:54 -08:00
Evan Czaplicki
41a383b31c Add special infix ops for working with signals 2012-12-14 19:51:01 -08:00
Tinco Andringa
9c686708e4 add shell script to compile core-js 2012-12-14 00:19:21 +01:00
Tinco Andringa
e3c7b7d7bb use happstack 7.1.1 2012-12-14 00:01:55 +01:00
evancz
6ac414c79e Make changes to get Dict and Set working as expected.
Add a note to elm-server indicating that you don't need to restart to recompile code.
2012-12-12 22:52:32 -08:00
evancz
3afe1fb86d Add Elm. to List 2012-12-11 23:44:43 -08:00
evancz
60ff703372 Try again to fix bug with readInt and readFloat 2012-12-11 01:18:27 -08:00
evancz
0059d82d30 Fix minor bug and bump the version number. 2012-12-10 21:48:25 -08:00