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
evancz
961a74df67
Change direction of vector rotation. I.e. Add a minus sign. Off by one character!
2012-10-04 01:57:15 -04:00
evancz
0a1461d7b0
Make vector rotation more efficient in insideForm
.
2012-10-04 01:49:46 -04:00
evancz
20f5e0edfc
Add atan2
.
2012-10-04 01:49:09 -04:00
evancz
02adbe1e40
Change the type of show
. It now produces a String
.
2012-10-04 00:54:41 -04: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
6a4cf28866
Add a bunch of functions to classify chars.
...
Remove an unnecessary `console.log`
2012-10-04 00:39:00 -04:00
evancz
8b72e0db01
Rename forall
and exists
to all
and any
. I ended up liking these names better and they do not clash with the potential introduction of forall
in types.
2012-10-04 00:37:58 -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
bb1d53de2e
add insideForm :: Point -> Form -> Bool
function that checks to see if a point is inside of a form.
2012-09-27 17:18:29 -04:00
evancz
9020b22499
Fix bug in typeface
and in makeSpaces
. Remove form example so that it is not duplicated.
2012-09-16 00:50:48 -05:00
evancz
8a79164a21
Distinguish between DOM nodes created by Elm and ones imported from JS.
2012-09-13 21:28:16 -07:00
evancz
9197f15f1a
Fix bug in sampleOn
.
2012-09-13 12:25:48 -07:00
evancz
bcfdf66ed9
Add images
function.
2012-09-13 12:25:14 -07:00
evancz
5fbc042066
Fix size analysis of text in IE and FireFox
2012-09-11 13:57:42 -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
0e613a1058
Include Graphics.Element by default. Fix bugs for fittedImage
and change when the string for video
is converted to a JSString.
2012-09-02 00:27:36 -05:00
evancz
2f5d4459ef
Fix up graphics libraries:
...
- All basic elements can now be displayed and updated. Updates no longer rebuild the whole scene; instead they only replace as necessary.
- Add `container` primitive which allows people to position Elements in a more flexible way.
- Collages can now handle sprites, textures, and Elements!
Still need to work on making Signal.Input play nice with the new Graphics libs.
2012-09-01 16:38:09 -05: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
b9380718ce
Fix display bug in toText
function. Strings were not escaped properly :/ Now they are!
2012-08-14 14:10:24 +02:00
evancz
bfe31c300a
Depend on lib that actually exists.
2012-08-12 00:01:48 +02:00
evancz
2f327b087a
Correct bug with displaying characters.
2012-08-09 16:38:44 +02:00
evancz
46cb69f5c6
Update runtime system, and update version number to 0.3.6.
2012-07-28 23:06:54 +02:00
evancz
f39142db12
Add JSON library and make pretty printing for JSON work.
2012-07-28 22:59:31 +02:00
evancz
b6806c5d48
Add JSON library.
2012-07-28 20:33:58 +02:00
evancz
39f00d8b6b
Display JSON properly and add JSON.js to the big lib builder.
2012-07-28 20:33:00 +02:00
evancz
7d09fb6972
Fix display bug in latest Chrome build.
2012-07-28 20:32:31 +02:00
evancz
6c90abaf3d
Add comparison functions and some (int <-> float) functions.
2012-07-28 20:31:57 +02:00
evancz
0b99ea4def
Add div
function for integer division.
2012-07-17 18:53:48 +00:00
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