Commit graph

32 commits

Author SHA1 Message Date
evancz
4cd426d9fb Fix FFI conversion bug for JSTuples to Tuples. 2012-07-17 18:53:30 +00:00
evancz
03245c286a Fix foldr1 bug (wrong base case). Reveal isClickedOn in Signal.Mouse. Bump version number. 2012-07-05 10:21:27 -05:00
evancz
1430e8f467 Correct error with sampleOn function. 2012-06-29 11:29:41 -05:00
evancz
913aaf0509 Set margin and padding to 0 explicitly.
Move JSElementToElement (and vice-versa) to Foreign.JavaScripct.Experimental.

Add clicks and sampleOn functions.
2012-06-29 10:21:06 -05:00
evancz
9e1d2c87df Fix error with castJSElementToElement. 2012-06-28 15:34:58 -05:00
evancz
0934ab6e72 Add built-in event handlers (elm_log, elm_title, elm_redirect) and add Data.List.last 2012-06-28 12:57:17 -05:00
evancz
9332a8a152 Update .js files for Foreign.JavaScript and new Signal operators. 2012-06-28 03:50:16 -05:00
evancz
36e8bfbffa Add Boolean conversions. 2012-06-25 07:14:04 -05:00
evancz
6cffa48e4e Correct the frequent misspelling of "Foreign" (such a weird word!) and change internal representation of foreign import/export information. 2012-06-25 07:07:52 -05:00
evancz
86f5ce0a19 Add a hidden function for the JS FFI 2012-06-22 09:57:16 -05:00
evancz
a29f60dc24 The beginnings of a JavaScript FFI 2012-06-22 09:56:48 -05:00
evancz
482b7ea295 Switch how colors are defined (Ints instead of Floats) and add four colors (grey, yellow, magenta, cyan). 2012-06-21 00:10:33 -05:00
evancz
248946f007 Create Prelude module which exports a bunch of List functions. Add take and drop to Data.List. Ensure that prelude is automatically imported, even if it is not listed. 2012-06-20 22:37:28 -05:00
evancz
f7bb66208f Fix resizing bug in Dispatcher.js. Bump version number for elm-server. 2012-06-19 01:59:46 -05:00
evancz
58bb15d89e Fix two bugs: (1) Reported text size was incorrect for headers. (2) The outermost div was not resized properly. 2012-06-15 03:23:42 -05:00
evancz
c9a6398cd8 Fix sizing bug in runtime system. 2012-06-12 05:44:45 -05:00
evancz
980c50bb4b Add Keyboard.Raw, Data.Char, and Data.Maybe libraries. 2012-06-11 06:14:19 -05:00
evancz
9069fcaa92 Generalize equality. Equality is now derived for all values (in the spirit of OCaml). Also bump version numbers. 2012-06-10 07:58:11 -05:00
evancz
0735c6bdc6 Fix above and below to work properly with the new parser, and add a slightly better error message for runtime issues. 2012-06-10 04:13:00 -05:00
evancz
64c880c45b Bug fix / significant change in how updates are made. When a stateful signal was used in multiple places, it was updated multiple times. This change fixes that problem. 2012-06-08 00:54:22 -05:00
evancz
8c05cc18de Remove console.log test from fittedImage function. 2012-06-07 16:40:21 -05:00
evancz
4c9c06e7e6 Add fittedImage :: Int -> Int -> String -> Element which displays an image fitted to a particular set of dimensions. If the desired aspect ratio is different than the original, the image will be cropped and centered as necessary to fill the desired dimensions. 2012-06-07 16:34:48 -05:00
evancz
e33d3290e3 Introduce basic optimizations.
Reduces the size of string-heavy code dramatically! 70% decrease in the
size of the the elm-lang.org home page.
2012-05-22 18:07:21 -04:00
evancz
3a83d69168 Correct errors with mod function. 2012-04-30 23:13:35 -04:00
evancz
368b145def Correct behavior of 'mod' function. Add 'rem' function. 2012-04-30 21:56:20 -04:00
evancz
fc6bcf6934 Remove DOM update code in favor of naive update mechanism (replace everything). Not ideal, but should be added back when Element model is more robust. 2012-04-30 21:55:52 -04:00
evancz
cdd1a897bb Improve error reporting very slightly. Add Mouse.clickedOn function. 2012-04-30 17:05:34 -04:00
evancz
bc78002238 Add Input.button for form submission. 2012-04-29 20:55:29 -04:00
evancz
75ce10de64 Fix subtle signal update bug. Lift nodes previously short-circuited when one input changed rather than updating all inputs. 2012-04-29 15:08:30 -04:00
evancz
604cb183c4 Add Maybe datatype. Add "gets" and "posts" to HTTP library. Correct error with (/=) operator. 2012-04-23 15:52:14 -04:00
evancz
191f3d8351 Add "Response" datatype to HTTP library. elm-mini.js was changed accordingly. Add bash file to concatenate all js files. 2012-04-21 22:00:13 -04:00
evancz
ff3d6ec6cb Add all core JavaScript libraries. 2012-04-19 23:10:25 -04:00