Commit graph

145 commits

Author SHA1 Message Date
John P Mayer Jr
40c1cfa81a Changed type signature of JSON.fromString; added multiplayer mario example 2013-02-02 19:37:05 -05:00
evancz
51accf643d Change name of WebSocket.send to WebSocket.open.
Begin adding documentation to raw JS files.
2013-01-30 19:47:29 -08:00
evancz
cd3571976c Merge branch 'master' of https://github.com/evancz/Elm 2013-01-30 03:57:15 -08:00
evancz
d0dad209a4 Remove some silly comments that Google Closure had me put in. 2013-01-30 03:55:10 -08:00
evancz
62b344c2a1 Attempt a WebSockets library. 2013-01-30 03:54:49 -08:00
evancz
8795bae3ef Begin adding some type annotations. 2013-01-30 03:54:09 -08:00
Dobes Vandermeer
30319a3425 And a few more places with bad throws. 2013-01-29 12:47:55 -08:00
Dobes Vandermeer
258519a999 Merge branch 'master' of git://github.com/evancz/Elm 2013-01-29 12:45:01 -08:00
Dobes Vandermeer
99264a5aa1 Fix some more places where strings were thrown rather than Error(). 2013-01-29 12:42:56 -08:00
evancz
3d1363c7a1 Make records faster using in and Object.create and profiling. I was seeing improvements of 6 or 7x for individual operations. 2013-01-29 10:11:23 -08:00
evancz
a6709b8178 Fix silly error with mergeEither. 2013-01-25 11:27:01 -08:00
evancz
398ef59fe9 Add xor function. 2013-01-25 11:27:00 -08:00
evancz
d8f8bf5c39 Ensure that touch listener is detached if it is not used. 2013-01-25 11:26:59 -08:00
evancz
589a16cdd0 Add the mergeEither signal and remove some dead code from Touch.js. 2013-01-25 11:26:58 -08:00
evancz
d2bc280d31 Switch how ADT's are displayed. Should have no visible effect. 2013-01-25 11:26:58 -08:00
evancz
c5da28341c Add Either library, change Maybe API, and add tap to Touch library. 2013-01-25 11:26:58 -08:00
evancz
0048be9733 Fix silly error with mergeEither. 2013-01-25 01:28:08 -08:00
evancz
6873bc6b5b Add xor function. 2013-01-15 19:49:07 -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
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
6af3eb3f5f Fix bug with importing DOM nodes. 2013-01-03 00:27:38 -08: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
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
Tinco Andringa
9c686708e4 add shell script to compile core-js 2012-12-14 00:19:21 +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
0059d82d30 Fix minor bug and bump the version number. 2012-12-10 21:48:25 -08:00
evancz
28c3a711ed New version of Pong. Update version numbers. 2012-12-08 12:53:16 -08:00
evancz
79d9d4c509 Add timestamp and timeOf functions to Signal library. 2012-12-03 22:21:00 -08:00
evancz
5c06a73c74 Make fpsWhen slightly more accurate. Change part of the API to be more flexible. 2012-12-01 20:48:46 -08:00
evancz
08e3c514e0 Export average and Time library in prelude. 2012-12-01 20:47:30 -08:00
evancz
fbabe4b94f Remove Date.every and change weekday into dayOfWeek. 2012-12-01 20:46:41 -08:00
evancz
8d7df3d08d Add average function and ensure that delay does not propagate the default value. 2012-12-01 20:45:48 -08:00
evancz
87eaa915c8 Fix the middleAt function. 2012-11-25 14:19:14 -08:00
evancz
7b1a2f446d Add zip and zipWith to Prelude. Fix an oversight in the constraint generator. Upload the elm runtime system. 2012-11-25 11:39:55 -08:00
evancz
2eeac2fd0f Add guarded definitions. Add whitespace sensitivity for let- and case-expressions. 2012-11-24 20:49:56 -08:00
evancz
9e0c80b861 Bump version number. 2012-11-24 13:01:10 -08:00
evancz
d4012e466a Add a way to construct HSV colors with hsv and hsva. Also add a now function to Date. 2012-11-22 20:32:32 -08:00
evancz
b9ae74b9e5 Start using custom infix definitions. 2012-11-22 20:31:55 -08:00
evancz
2c7fed1f2b Ensure that standard JS objects Date and JSON do not get shadowed by the Elm libraries of the same name. 2012-11-21 18:47:26 -08:00
evancz
b2240f94e4 Fix bug in how Dictionaries and Sets are converted to strings. 2012-11-21 00:03:52 -08:00