Commit graph

128 commits

Author SHA1 Message Date
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
evancz
0ac5bbba7e Add Date to RTS. 2012-11-20 23:18:52 -08:00
evancz
e85f31fda5 New way to import that does not clutter global namespace. Switch uses of Nothing and Just to simpler expressions.
Fix IE9 bug due to `console.log`.
2012-11-20 23:18:32 -08:00
evancz
354c2efe43 Get rid of more closure compiler errors. 2012-11-14 00:30:06 -08:00
evancz
f508072988 Updates to get rid of closure compiler errors. 2012-11-14 00:06:22 -08:00
evancz
b5df47f6f6 Add now and lots of time conversions to time library 2012-11-13 21:31:32 -08:00
evancz
ede839f787 Add new signal primitives. 2012-11-13 21:31:06 -08:00
evancz
807a7ec28e Add Date library. 2012-11-13 21:30:22 -08:00
evancz
64a1d9fa5b Allow fittedImage to handle animated gifs! 2012-11-04 15:15:26 -08:00
evancz
3bbb984941 Add new version of .cabal and .js 2012-11-03 18:26:19 -07:00
evancz
ced5b80061 Update for v0.5.0.1. 2012-10-31 01:01:13 -07:00
evancz
d71f7a41e7 Make sure that HTTP responses are sent immediately but delivered sequentially. 2012-10-30 00:48:17 -07:00
evancz
21ec620c88 Get rid of overriding JavaScript's String class. 2012-10-30 00:47:27 -07:00
evancz
bff94a0d0d Add the complement function that finds complementary colors. 2012-10-23 01:12:44 -07:00
evancz
e52ece9b73 Get rid of Graphics module prefix. 2012-10-22 00:17:51 -07:00
evancz
84e8d80631 Add special finds to JSON. 2012-10-21 04:54:36 -07:00
evancz
ce9e5d2173 Fix bug in space adder. 2012-10-21 04:54:07 -07:00
evancz
dc0d9a2ba3 Add the readInt and readFloat functions. 2012-10-21 04:53:47 -07:00