Commit graph

40 commits

Author SHA1 Message Date
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
8d7df3d08d Add average function and ensure that delay does not propagate the default value. 2012-12-01 20:45:48 -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
ede839f787 Add new signal primitives. 2012-11-13 21:31:06 -08: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
bdb898df65 Rename libraries, dropping prefixes. This probably introduces some bugs. 2012-10-15 23:03:14 -07:00
evancz
f4344dcb59 Totally redo the HTTP API. Get rid of Maybe in types because the signal filtering functions make them unnecessary. Make requests more flexible with the request function which lets you set the type, url, data, and set request headers. 2012-10-04 00:41:33 -04:00
evancz
c9c17b34ef Rename insideForm to isWithin.
Rename `foldp1` to `foldp'`, I think the previous name suggests different behavior.
Add `foldp1 :: (a -> a -> a) -> Signal a -> Signal a`
Add type hints for all of these functions.
2012-10-02 22:57:52 -04:00
Joey Adams
0dee68605c Add foldp1
foldp1 :: (a -> b -> b) -> (a -> b) -> Signal a -> Signal b

Like foldp, but the initial value is based on the input signal's
initial output.
2012-09-28 22:01:31 -04:00
evancz
9197f15f1a Fix bug in sampleOn. 2012-09-13 12:25:48 -07:00
evancz
bd9dc475c7 Fix bug in sampleOn which caused it to send two messages per event instead of one. Really bad behavior! 2012-09-11 13:57:21 -07:00
evancz
66dc52d34f Update isClickedOn to work with new graphics system. 2012-09-11 13:56:06 -07:00
evancz
38d0e8f2e6 Add support for links and DOM nodes. Fix lots of bugs. 2012-09-11 02:52:03 -07:00
evancz
1501160bac Begin rewrite of rendering engine. 2012-08-31 01:42:33 -05:00
evancz
5547fb1cfd Update version to fix bug in IE and FF! 2012-08-21 16:08:14 +02:00
evancz
3584556ccd Insert spaces such that line breaks still happen. Fix string displaying in buttons. 2012-08-14 20:38:48 +02:00
evancz
c402dce192 More bug fixes for string escaping. 2012-08-14 15:07:04 +02:00
evancz
7d09fb6972 Fix display bug in latest Chrome build. 2012-07-28 20:32:31 +02: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
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
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
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
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