Commit graph

82 commits

Author SHA1 Message Date
evancz
60e403ba82 Fix show for ADTs and get parens in the right places.
Make `Elm.init(Elm.MyModule)` work nicer when it takes over the whole `document` and needs to resize with the window.
2013-04-06 16:48:20 -07:00
evancz
0354fad128 Explicitly list imports for a module. 2013-04-05 09:56:37 -07:00
evancz
613d9f5bc9 Fix bug in height and color 2013-04-05 09:52:18 -07:00
evancz
7664f71fc5 Fix combine function in Signal. 2013-04-03 10:35:18 -07:00
evancz
f3befa61cb Skip average for now. To be added back! 2013-04-03 10:33:13 -07:00
evancz
fc37907bc1 Move average to the automaton library. 2013-04-03 10:15:46 -07:00
evancz
d27ab15ec4 Add combine to the signal library. 2013-04-03 09:54:10 -07:00
evancz
1dbbc599f9 Reorder comments in List.elm 2013-04-03 00:33:55 -07:00
evancz
58640c553b Make sure that List only gets instantiated once. Requires that the list library is pure (never touches the elm variable) 2013-04-01 00:36:30 -07:00
evancz
475bc10876 Add implementation for checkboxes, passwords, and emails.
Ensure that direction of text selection is properly captured.
2013-04-01 00:35:18 -07:00
evancz
c15005f71c Get rid of special Input/Button.elm file, all will be in Graphics.Input. 2013-03-27 18:57:38 -07:00
evancz
a66a4b1fab Fix Automaton library to match PLDI paper. 2013-03-27 18:56:30 -07:00
evancz
ecaa5bdb29 Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-03-27 18:32:44 -07:00
ngunn
aa7a67fc85 List.js change: Nil checks all use .ctor
added comment on Nil handling
direct Nil comparison with ctor equiv.  see comments here: https://github.com/evancz/Elm/pull/130#issuecomment-15471337
2013-03-27 21:02:27 +00:00
evancz
c0a4286c16 Fix bug in lineStyle migration. 2013-03-27 09:52:16 -07:00
evancz
2aeeae7239 Fix rendering of lineJoin. 2013-03-26 19:31:31 -07:00
evancz
af64fc1848 Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-03-26 19:02:02 -07:00
evancz
e9d2288197 Move LineStyle into Collage. 2013-03-26 18:50:18 -07:00
ngunn
864761b56e List.js: fix long-standing bug in append (2 chr$ change)
Present since initial version: 389a6f5309
2013-03-26 14:21:57 +00:00
evancz
9a40392e00 Fix bugs in container and an empty flow 2013-03-26 00:12:31 -07:00
evancz
dd10e820de Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-03-25 19:09:07 -07:00
ngunn
93afe4cea8 List.js minor bugfixes (followup)
put foldl back as was + add type sig. to indicate why
replace use of xs.ctor with direct comparison against Nil.  This means the ctor field is no longer required (which is nice).

move .ctor in stor to the actual variable (doh)
2013-03-25 20:25:29 +00:00
ngunn
441e90770b List.js minor bugfixes
freeze Nil (one-time overhead for marginal safety)
don't do this for Cons (huge performance overhead)

use Nil throughout instead of making our own (if we're having a singleton, we should be consistently using it)

missing A2, A3 in places.

foldl function applied args in wrong order, foldl :: (a -> b -> a) -> a -> [b] -> a
sort: missing .ctor selector
2013-03-25 17:36:30 +00:00
evancz
93428aa21d Fix bug in export of List.member 2013-03-25 03:00:05 -07:00
evancz
545be51678 Fix behavior of customButton to avoid flicker. 2013-03-24 22:23:30 -07:00
evancz
24c90b3673 Fix rendering bug with standard input buttons. 2013-03-24 19:48:27 -07:00
evancz
63a40ea305 Fix import bugs in Input file. 2013-03-24 19:29:32 -07:00
evancz
9962ded3e2 Remove logging. 2013-03-24 19:20:52 -07:00
evancz
b930ac2984 Add implementation for buttons, customButtons, and textFields.
Also fix updating bug in `flow`.
2013-03-24 19:19:30 -07:00
evancz
87a275abeb Fix bugs:
* types rendered "::" instead of ":"
* `Signal.count` was broken
* Prelude didn't have `show`
2013-03-24 19:17:21 -07:00
evancz
26ddaf697e Add the basic proposal for an Input library. 2013-03-24 11:42:17 -07:00
evancz
cd6407c95a Add the Input library. 2013-03-24 11:08:48 -07:00
Mads Flensted-Urech
441d09c4a7 Docs update: copy documentation from elm-lang.org
- Copy documentation from elm-lang.org (dev branch) to .elm files in
libraries folder
- Added TODO's for stuff that was not found in 0.8 version
- Added Review TODO in json.elm
2013-03-24 13:45:56 +01:00
evancz
893e4691e6 Add groupTransform function.
Add public Matrix library. Clean up and debug matrix implementation.
2013-03-23 23:54:00 -07:00
evancz
26bcdd201a Change type of toCode and fromCode 2013-03-23 19:30:49 -07:00
evancz
0fbc244bbb Change names back to be longer but better. 2013-03-23 18:22:25 -07:00
evancz
79093ff4da Change the name of Keyboard to Keys. Change some function names and change type of charPressed to be the latest char pressed (default is '\0') 2013-03-23 16:52:58 -07:00
evancz
e80f19b423 Fix move to have y-axis properly oriented.
Fix rotations (`degrees` and `turns` functions were broken because I used `Math.pi` instead of `Math.PI`...)
2013-03-23 13:20:30 -07:00
evancz
86a0a904d8 Fix oval and ngon. (It's PI, not pi!) 2013-03-22 18:27:03 -07:00
evancz
82a5a65dc9 Fix use of JS reserved word and get outline working. 2013-03-21 03:07:10 -07:00
evancz
4b8c9796a5 Add some files 2013-03-21 02:35:36 -07:00
evancz
131a2b6818 Get sprites working in collage. temporary fix for docs.json issue. Looks like git thinks we're in the past, so a bunch of changes that have already happened as well. 2013-03-21 02:29:23 -07:00
evancz
7dbb052b22 Load json representation of types with Template Haskell, so library files are the base truth of type information.
Make minor fixes in libraries, such as adding the Char labrary and fixing the types in the Dict library.
2013-03-16 22:24:18 -07:00
evancz
194b25958b Get everything compiling again. 2013-03-16 13:00:59 -07:00
evancz
1822ebc160 Move the compiler down a directory, mostly. 2013-03-16 12:04:05 -07:00
evancz
3746c3217a Fill in some of Prelude.js 2013-03-16 02:02:16 -07:00
evancz
202aace362 Add the Prelude library with type annotations and docs. 2013-03-16 01:21:08 -07:00
evancz
0050bfa845 Add a matrix library and switch collage over to use it. 2013-03-16 01:11:15 -07:00
evancz
f1071b7614 Don't expose Matrix to people yet 2013-03-15 10:58:59 -07:00
evancz
481c2daab8 Switch to matrix representation of transformations. 2013-03-15 10:56:07 -07:00