Commit graph

904 commits

Author SHA1 Message Date
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
evancz
64e88fd24b Add Game Skeleton for easy game making. 2012-12-08 13:08:47 -08:00
evancz
13e7203393 Fix up helpers in Pong/ 2012-12-08 13:01:58 -08:00
evancz
28c3a711ed New version of Pong. Update version numbers. 2012-12-08 12:53:16 -08:00
evancz
5dcb6f7c31 Add type hints for timestamp and timeOf 2012-12-03 22:23:32 -08:00
evancz
73f7d7cc9b Properly escape strings. 2012-12-03 22:21:22 -08:00
evancz
79d9d4c509 Add timestamp and timeOf functions to Signal library. 2012-12-03 22:21:00 -08:00
evancz
02cbb61c1c Update the RTS. 2012-12-01 21:18:46 -08:00
evancz
d15e08075b Update the Dict library to test new parser and type checker. 2012-12-01 21:18:25 -08:00
evancz
b9d26eeead Make the Time type more flexible. 2012-12-01 21:12:51 -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
b16714eb6b Add type hints for new Time and Date libraries. 2012-12-01 20:43:37 -08:00
evancz
e2457830c7 Fix up some code. 2012-12-01 20:42:28 -08:00
evancz
06e5a22179 Make the order of definitions more flexible. Also, ensure that unicode characters work in strings. 2012-12-01 20:42:09 -08:00
evancz
69ed3476b1 Remove upper bound on pandoc. 2012-12-01 20:39:57 -08:00
evancz
95364f3758 Refactor lots of code in the type-checker. Also includes some efficiency improvements to make unification a bit faster. 2012-11-28 22:16:08 -08:00
evancz
abe4d52e80 Get Pong back to working with 0.5.0.2. 2012-11-26 13:29:10 -08:00
evancz
87eaa915c8 Fix the middleAt function. 2012-11-25 14:19:14 -08:00
evancz
fb3acd701a Do some house keeping in the Compiler.hs file. Start using the System.FilePath module which cleaned up some code and is probably significantly safer :) 2012-11-25 14:08:10 -08:00
Evan Czaplicki
0d03de7f5f Merge pull request #49 from mcveat/compiler-output-directory
Compiler output directory
2012-11-25 13:49:30 -08:00
Piotr Adamski
c75a02917b fixed indentation 2012-11-25 21:37:24 +01:00
Piotr Adamski
34a96713d4 compiler has an option to specify output directory for html/js files 2012-11-25 21:28:02 +01: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
77912ae46b Clean up Pong, now uses Time.fps and some of the recent syntax upgrades. 2012-11-24 20:50:33 -08:00
evancz
2eeac2fd0f Add guarded definitions. Add whitespace sensitivity for let- and case-expressions. 2012-11-24 20:49:56 -08:00
evancz
69ffd8e430 Get rid of a bunch of old runtime systems. 2012-11-24 20:48:38 -08:00
evancz
9e0c80b861 Bump version number. 2012-11-24 13:01:10 -08:00
evancz
66720b5dd2 Bump version number of Elm.
Exclude a couple more operators from being user defined.
2012-11-24 13:00:56 -08:00
evancz
b4d563dff8 Fix bugs in import statements. Make sure JS imports work with any JS-minifier. 2012-11-24 13:00:00 -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