Commit graph

731 commits

Author SHA1 Message Date
evancz
5faf79c6da Also hide height from the Text module, which overlaps with the Element version of the function. 2013-04-05 09:53:15 -07:00
evancz
613d9f5bc9 Fix bug in height and color 2013-04-05 09:52:18 -07:00
evancz
f625a9c7d6 Fix how compiler errors are displayed in generated HTML 2013-04-05 09:51:45 -07:00
evancz
1af2ff9a01 Get the API for Language.Elm in better shape. Trying to get elm-lang.org working again. 2013-04-04 10:37:43 -07:00
evancz
82f888cb3d Get the type-checker running based on docs.json information. Also add rules for Nil and Tuple0, Tuple2, etc. 2013-04-04 01:09:35 -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
ab62612332 Ensure that --make skips trying to read libraries as files. 2013-04-03 10:27:23 -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
294fdfdaa5 Add prelude in compiler with flag. Re-add the hiding option for modules internally. 2013-04-03 00:32:21 -07:00
evancz
22bfcb83cf Add the --no-prelude flag for compiling the standard libraries. Clean up code to handle flags. Change name of --generate-noscript to --noscript (this flag can probably be taken out actually) 2013-04-01 01:05:41 -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
7d1b40a85f Change send function to be curry-able. 2013-04-01 00:35:45 -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
2ee23724f9 Fix nested pattern matching in let expressions. 2013-03-29 19:26:50 -07:00
evancz
9c8dfd9b68 Give better name for errors when parsing docs.json 2013-03-28 10:01:15 -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
Evan Czaplicki
7044dd511f Merge pull request #134 from ngunn/l-dev
List.js change: Nil checks all use .ctor
2013-03-27 14:09:28 -07:00
Evan Czaplicki
10242dbc7d Merge pull request #133 from ngunn/c-dev
Setup.hs: move buildTypes back into post-build, fixes compilation dependencies
2013-03-27 14:06:18 -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
ngunn
2e4951b78e Setup.hs: move buildTypes back into post-build, fixes compilation dependencies
cabal compiling far fewer files now :-)
minimal changes, mostly comments, so it should be easier to put back/further fix/other
2013-03-27 20:48:44 +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
Evan Czaplicki
0a8187257c Merge pull request #131 from ngunn/dev
List.js: fix long-standing bug in append (2 chr$ change)
2013-03-26 10:03:03 -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
Evan Czaplicki
3759543128 Merge pull request #130 from ngunn/dev
Singleton Nil consequential change to compiler (minor)
2013-03-25 18:16:13 -07:00
ngunn
b6872d4bac Singleton Nil consequential change to compiler (minor)
CompileToJS generates objects using "ctor:"... for all non-primitives.
Added special handling for lists

Might be better to have a separate tag instead of: Data "Nil"

Test case:
main_join = let f x xs = (x::xs)
    in asText $ zipWith f ['c','m','t'] ["hop","ill","ape"]

 before fails with "xs: undefined".
2013-03-26 01:04:19 +00:00
Evan Czaplicki
3559c5374d Merge pull request #129 from ngunn/dev
List.js minor bugfixes (for review)
2013-03-25 14:28:59 -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
Evan Czaplicki
d2acbca4de Merge pull request #127 from madscoaducom/docs-update
Move of documentation to libraries - first round
2013-03-24 11:06:04 -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