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
evancz
b4665fd2fb
Remove the find
function.
2012-10-21 04:52:46 -07:00
evancz
a10b1319e5
Stop shadowing native JSON library.
2012-10-19 01:07:45 -07:00
evancz
3a47ed34aa
Change the name of dragForm
to draggable
.
2012-10-19 00:27:12 -07:00
evancz
17232487cd
Update Automaton, Dict, and Set libraries.
2012-10-19 00:13:28 -07:00
evancz
aab53b2774
Add a bunch of functions to Dict and Set libs.
2012-10-18 02:19:50 -07:00
evancz
7c319fe4c5
Rewrite core-js to remove prefixes and change global Elm prefix from ElmCode
to Elm
.
2012-10-16 22:02:35 -07:00
evancz
cc5d855d4e
Include Automaton, Dict, and Set in the RTS.
2012-10-16 22:00:49 -07:00
evancz
bdb898df65
Rename libraries, dropping prefixes. This probably introduces some bugs.
2012-10-15 23:03:14 -07:00
evancz
c24eca8836
Add toString
definition for Maps
2012-10-10 15:05:46 -07:00
evancz
881a5cfe75
Bump version number to 0.4.5
2012-10-07 20:37:48 -07:00
evancz
95b20dba54
Update changelog.txt and add automatons to the RTS.
2012-10-07 20:34:32 -07:00
evancz
16895c4384
Add monospace
back to asText
2012-10-04 12:18:01 -04:00