Commit graph

536 commits

Author SHA1 Message Date
Evan Czaplicki
fd7707e649 cosmetic: use a slightly more descriptive names 2014-01-06 05:21:26 +01:00
Evan Czaplicki
502cfc0465 Handle values sent to incoming ports, still need to properly define Elm.input though 2014-01-05 13:47:01 +01:00
Evan Czaplicki
7cf5a564e5 Add Expressions for ports to check and validate types nicely 2014-01-04 11:39:38 +01:00
Evan Czaplicki
578dfb8358 Merge branch 'js-integration' into dev 2014-01-02 12:29:08 -08:00
Evan Czaplicki
56324bf699 Update version numbers for standard library 2013-12-29 15:35:26 -08:00
Evan Czaplicki
4e23dc6a08 Mess with documentation for empty 2013-12-24 10:16:17 -08:00
Evan Czaplicki
71bb1c8bf9 Add basics of properly handling ports 2013-12-24 10:13:19 -08:00
Max New
6992d941c7 Add empty element 2013-12-20 23:35:36 -06:00
Evan Czaplicki
39769b77af Merge pull request #399 from mgold/char-compare
Fix Char comparisons
2013-12-19 18:53:07 -08:00
Max Goldstein
460fe0d3a4 Further optimizations 2013-12-19 21:47:16 -05:00
Max Goldstein
c6fbc8df24 Use instanceof for performance 2013-12-19 19:55:41 -05:00
Evan Czaplicki
5071f0f8d6 Merge pull request #393 from maxsnew/dict
Add efficient update function for Dict
2013-12-19 10:09:57 -08:00
Max New
33b39a30db Implement more general Dict update. 2013-12-19 04:16:00 -06:00
Evan Czaplicki
ab53fac3c4 Add note about how to interpret JS functions 2013-12-18 23:35:14 -08:00
Max New
bb3d0dc566 Add efficient update function for Dict 2013-12-18 22:02:02 -06:00
Max Goldstein
fac00f66c4 Fix Char comparisons
Fixes evancz/Elm#392
2013-12-18 21:39:46 -05:00
Evan Czaplicki
32e7d1da03 Get rid of dead code in Prelude. Need to figure out how to kill prelude entirely. 2013-12-18 12:53:11 -08:00
Evan Czaplicki
5aedf723ec Take Automaton out of standard libraries for now 2013-12-18 12:52:47 -08:00
Paul Ivanov
b77fd96d68 fix typos in Graphics 2013-12-17 15:44:58 -08:00
Paul Ivanov
bb851314ab more typos 2013-12-17 15:44:45 -08:00
Paul Ivanov
70e861818d fix typo in docs 2013-12-17 15:40:31 -08:00
Evan Czaplicki
123fb9440d Improve documentation for the new libraries 2013-12-17 15:20:39 -08:00
Evan Czaplicki
68d41ba1bc create file for uploading standard library to library.elm-lang.org 2013-12-17 13:59:38 -08:00
Evan Czaplicki
f1f5744f5b Add note about short-circuiting with (&&) and (||) 2013-12-17 13:59:19 -08:00
Evan Czaplicki
80e8af63e5 Rollback on laziness for now.
I feel like it does not have a strong use case yet, and does not align
with the nearterm goals of Elm. I don’t want to introduce complexity
unless it has a big reward.
2013-12-14 20:50:16 -08:00
Evan Czaplicki
c8c9913983 Add more info to comments 2013-12-13 17:05:33 -08:00
Evan Czaplicki
f57ffdf84e Clarify docs for splitWith and make note about potential infinite loops more consistent 2013-12-13 16:38:02 -08:00
Evan Czaplicki
cc5be70ac4 Add more documentation (mainly adding more examples) and change to the name splitWith 2013-12-13 16:15:35 -08:00
Evan Czaplicki
8a9fbbc7cc Merge branch 'master' into dev 2013-12-13 15:49:30 -08:00
Evan Czaplicki
91007fc4f9 Merge pull request #383 from maxsnew/lazy
Add unsafe Stream functions
2013-12-11 23:56:30 -08:00
Evan Czaplicki
01a5b1d8c2 that's not how you spell "high five"! 2013-12-11 23:54:52 -08:00
Max New
3eeefe7141 Add unsafe Stream functions 2013-12-11 19:20:52 -06:00
Evan Czaplicki
1707e52e69 Add documentation for JsonValue 2013-12-11 13:05:31 -08:00
Evan Czaplicki
4452e4e138 Turn off markdown interpolation for now.
This will of course get turned back on! I don’t want to do it in the
very next release though.
2013-12-10 23:04:27 -08:00
Evan Czaplicki
1fbb635c51 Merge pull request #379 from maxsnew/lazy
Increase sharing in Stream combinators
2013-12-09 17:16:06 -08:00
Max New
16d8753640 Fix iterate with optimal sharing 2013-12-09 17:21:20 -06:00
Max New
12d3cc5e92 Increase sharing in Stream combinators 2013-12-09 16:48:13 -06:00
Evan Czaplicki
3f9170aa00 Merge pull request #378 from maxsnew/lazy
Add Lazy Evaluation/Streams Library
2013-12-09 14:07:48 -08:00
Max New
08b88b7ebb Add Stream docs and fix type of sampleOn. 2013-12-09 15:40:05 -06:00
Max New
4fa228102d Update Lazy docs 2013-12-09 15:19:41 -06:00
Max New
46f3fa1b2c Lazy/Stream API changes 2013-12-09 15:16:04 -06:00
Max New
5bb782af64 Add more Stream functions and start documentation 2013-12-09 01:33:40 -06:00
Max New
d97d54213c Add some basic functions to Lazy library 2013-12-09 00:39:11 -06:00
Max New
9f98ec9b19 Split Streams into separate module and add apply (a la <*>) 2013-12-09 00:23:30 -06:00
Evan Czaplicki
eab9ab6122 Add examples of new sorting functions and fix the typo mentioned in #355 2013-12-08 15:45:26 -08:00
Evan Czaplicki
ccf737e999 Merge pull request #355 from mgold/sort
Add sorting (targeting dev)
2013-12-08 15:18:20 -08:00
Max New
614c8c5108 Add more Stream functions 2013-12-07 14:38:33 -06:00
Max New
c2a6b0d9d0 Add Library for Lazy Evaluation 2013-12-07 14:38:33 -06:00
Christian Stork
61b2cd6e40 Fix Keyboard.lastPressed to signal repeated keys 2013-12-04 13:40:13 +01:00
Max Goldstein
bbdc6760c1 Add sortWith 2013-11-21 16:33:30 -05:00
Max Goldstein
b3c598466b Use Utils.cmp for sorting 2013-11-21 15:29:53 -05:00
Evan Czaplicki
bccfece2c1 Merge branch 'master' into dev 2013-11-19 22:34:08 -08:00
Evan Czaplicki
704da021b0 Fix "dropped" frames for text updates (#224, #339) using @timthelion's insights in #350
* Change the implementation of `notify` so that it does not have a
return value any more.

* Get rid of the only remaning use of the return value of `notify` in
the `every` function.

* Have a "lock" on each round to ensure that no library or runtime
calls `notify` synchronously, causing an update to happen half way
through another update, ultimately leading to a dropped frame.
2013-11-18 17:23:40 +01:00
i-e-b
75ad25b7ee Fix to Json Boolean native constructor 2013-11-15 15:58:16 +00:00
Max Goldstein
beeaa38755 Add sortBy function. 2013-11-13 10:26:24 -05:00
Max Goldstein
03256bc797 Add sort function.
Evan did 95% of the work, but forgot about the F2 wrapper.
2013-11-13 10:25:54 -05:00
timthelion
2d4d1678c3 Update String.elm
You had your types swapped.
2013-11-07 12:51:40 +01:00
Evan Czaplicki
b3d5357287 Rename to findAll and find like everyone expects :/
It's not consistent with `split` but people seem okay with that.

Also make some examples nicer.
2013-11-04 17:06:48 +01:00
Evan Czaplicki
82e9acf16e Change the internal representation of Text
Now generates significantly fewer spans and is a bit faster.
I also removed the `header` function.
2013-11-03 15:20:30 +01:00
Evan Czaplicki
46b9558b1a Get rid of unnecessary logging 2013-11-03 15:11:09 +01:00
Evan Czaplicki
1e1b0c1281 merge find and replace in docs 2013-11-03 01:06:19 +01:00
Evan Czaplicki
ef2b38fe11 Always switch out Text elements 2013-11-02 23:17:29 +01:00
Evan Czaplicki
a24872f330 cosmetic: remove a blank line 2013-11-01 23:51:49 +01:00
Evan Czaplicki
e411990a87 Create a Regex library 2013-11-01 23:51:23 +01:00
Tobias Hermann
1ed37fee60 type annotation of String.isEmpty: "isEmpty : String" => isEmpty : String -> Bool 2013-10-31 15:52:35 +01:00
Tobias Hermann
167298290b type annotation of String.isEmpty: "isEmpty : String" => isEmpty : String -> Bool 2013-10-31 14:25:22 +01:00
Evan Czaplicki
65509d7991 Correct the scaleY function, get rid of a 3x3 matrix in docs, use 3x3 matrices in multiply docs to clarify how two 3x2 matrices can be multiplied 2013-10-31 12:23:42 +01:00
Evan Czaplicki
b89ace01cf Merge branch 'master' into dev 2013-10-31 12:16:14 +01:00
Evan Czaplicki
5edfdb0bdd Merge pull request #307 from Sheeo/transform
Improve Transform2D
2013-10-31 04:12:33 -07:00
Michael Sondergaard
76de6741c3 Use s for scaling variable 2013-10-31 12:01:41 +01:00
Evan Czaplicki
d1af099b33 Merge pull request #315 from thSoft/patch-1
Fix grammar
2013-10-30 08:40:11 -07:00
Dénes Harmath
36fca0bbea Accepted another grammar fix proposal 2013-10-30 16:37:28 +01:00
Evan Czaplicki
5d1ba746ac Merge branch 'master' into dev 2013-10-30 16:34:29 +01:00
Evan Czaplicki
427ac521a3 Hide internal structure of Elements, Forms, and Positions 2013-10-30 16:34:06 +01:00
Dénes Harmath
68101742c9 Fix grammar 2013-10-30 16:19:02 +01:00
Evan Czaplicki
9c9fcc7a1e Actually switch to the new module name 2013-10-29 19:50:55 +01:00
Evan Czaplicki
904c22450b Rename Bits to Bitwise
A substitute for being streetwise
2013-10-29 19:42:04 +01:00
Evan Czaplicki
abf05d70c8 Make explanations a bit more helpful 2013-10-29 19:06:55 +01:00
Evan Czaplicki
2f7739949f Add a library for bitwise operators 2013-10-29 18:47:37 +01:00
Evan Czaplicki
a3ba3d3e2e Move some library functions out of JS and into Elm 2013-10-29 17:16:47 +01:00
Michael Sondergaard
b44a34e484 Unify matrices to 3x2 representation. 2013-10-29 17:05:17 +01:00
Michael Sondergaard
3a02543b26 Add scale and documentation for translation
Express translate in terms of the native matrix method instead.
2013-10-29 16:58:54 +01:00
Michael Sondergaard
a654bfa96b Add scaleX and scaleY 2013-10-29 16:58:31 +01:00
Michael Sondergaard
f0b38aeb3c Add Transform2D translation
I'm unsure of why so much code is commented out in Transform2D.

A more mature version of this module could generally be useful for doing
collision detection/modelling scenegraphs outside of the Collage interface.
2013-10-29 16:57:38 +01:00
Evan Czaplicki
3ae8b16109 Merge branch 'master' into dev 2013-10-29 15:40:12 +01:00
tomberek
1d0ce8e3f2 Updated the functions in "Transforming Forms" to use Float
Per: https://groups.google.com/forum/#!topic/elm-discuss/pdWc2_7JJDU

This should now match the Form type usage of Float.
2013-10-29 08:30:24 -04:00
Sergii Boiko
fd1d962a6b Update Automaton.elm
Fixed broken link in documentation.
2013-10-27 22:00:46 +02:00
Evan Czaplicki
56ecbbc70a Implement markdown interpolation 2013-10-25 17:36:30 +02:00
Evan Czaplicki
cb0183ba46 Fix error with request function 2013-10-24 18:33:38 +02:00
Evan Czaplicki
040389f507 Correct the value e 2013-10-24 15:02:43 +02:00
Evan Czaplicki
a6c96ebf6b fix show for numbers and other non-object types 2013-10-24 15:02:29 +02:00
Evan Czaplicki
519484d85a Add the toList and fromList functions 2013-10-22 10:09:41 +02:00
Evan Czaplicki
463873b771 Make docs nicer 2013-10-22 10:09:22 +02:00
Evan Czaplicki
abbcf3c13d Add append and concat functions, organize docs better 2013-10-22 06:54:09 +02:00
Evan Czaplicki
99bd1000c2 Fix issues with improperly created characters 2013-10-20 23:15:30 -04:00
Evan Czaplicki
692d8d8eac Throw errors for unbound type variables in ADTs and aliases, resolves #302 2013-10-19 10:39:23 -04:00
Evan Czaplicki
e2b3281a09 Add floatList to docs 2013-10-18 01:26:04 -04:00
Evan Czaplicki
44057afdb0 get rid of documentation for functions that are not exported 2013-10-18 01:11:41 -04:00
Evan Czaplicki
83406ff73a Remove weird cons functions and make documentation nicer. 2013-10-17 23:54:55 -04:00
Evan Czaplicki
5b2ba67e61 Get rid of double backslashes, which have mysteriously changed behavior and now actually show up twice 2013-10-17 20:32:45 -04:00
Evan Czaplicki
f43af4bbd1 Use faster loop for floatList and adjust indentation 2013-10-17 13:40:28 -04:00
Max Goldstein
dbd8b4dbfb Update docs for new String representation. 2013-10-16 10:44:30 -04:00
Evan Czaplicki
d0232b45d2 Fix behavior of pad 2013-10-16 01:55:20 -04:00
Evan Czaplicki
14b60a0a24 Add documentation to String and replace stringy examples in List docs 2013-10-16 01:54:09 -04:00
Evan Czaplicki
24da7112a9 Drop repeats by default on arrows, directions, wasd, and isDown 2013-10-14 13:33:48 -04:00
Evan Czaplicki
a29a1fd558 Fix mouse and touch tracking for embedded Elm programs, #291 2013-10-13 19:10:02 -04:00
Evan Czaplicki
ecf5e87dce Only export public functions 2013-10-13 18:24:02 -04:00
Evan Czaplicki
ffd088bfae cosmetic: switch to 4 spaces as indent 2013-10-13 17:58:52 -04:00
Evan Czaplicki
f34b150a5e cosmetic: indent "properly" 2013-10-13 17:40:59 -04:00
Evan Czaplicki
fb16adb92a Fix the problem with split from issue #289 2013-10-11 22:04:53 -04:00
Evan Czaplicki
ec581a9ef1 Properly join Text 2013-10-10 14:29:47 -07:00
Evan Czaplicki
4a914a497a Fix append on text
string literals have type string, whereas string objects are instances
of String
2013-10-10 14:25:49 -07:00
Evan Czaplicki
2c080b6b0d Mark Char and Text values to distinguish them from Strings
Also get rid of the unwords and unlines functions which are confusing
and can more easily be reproduced with (join " ") and (join "\n")
2013-10-10 13:57:33 -07:00
Evan Czaplicki
20bbb71359 cosmetic: fix indentation 2013-10-10 13:57:33 -07:00
Evan Czaplicki
6b28928067 cosmetic: fix typo and remove redundancy 2013-10-08 20:06:26 -07:00
Evan Czaplicki
0b11d4f0bd Merge pull request #281 from mgold/dev2
Random.floatList : Signal Int -> Signal [Float]
2013-10-07 19:52:25 -07:00
Max Goldstein
c99d7d72d5 Preallocate array per Spirros.
Need to specify indices explictly, as push will not overwrite the initialized
values but instead appends on to the end.
2013-10-07 21:35:49 -04:00
Evan Czaplicki
cc5295da29 Fix string conversion problems 2013-10-06 17:50:09 -07:00
Evan Czaplicki
efe8883ea6 Git rid of unhelpful subheadings 2013-10-06 16:00:05 -07:00
Evan Czaplicki
0828c9ead3 Organize the docs into more reasonable sections 2013-10-06 15:57:35 -07:00
Evan Czaplicki
81cbe9f147 Add ways to get substrings 2013-10-06 15:51:08 -07:00
Evan Czaplicki
74a13f59b5 Add basics of documentation and start using pad as in implementation 2013-10-06 14:33:39 -07:00
Evan Czaplicki
cfe1302e82 Add and rename functions
use the term "pad" to add characters
add ways to search for substrings
read ints and floats
2013-10-06 14:25:29 -07:00
Evan Czaplicki
88aa9d375f Take split function out of docs 2013-10-06 11:34:06 -07:00
Evan Czaplicki
0d5f1fe2d2 Fix fast repeat 2013-10-06 11:00:53 -07:00
Max Goldstein
4a93227f0b Random.floatList : Signal Int -> Signal [Float]
This version has been updated to work with b40f2958d4.
2013-10-06 10:26:28 -04:00
Evan Czaplicki
a505f7e030 indent properly 2013-10-04 15:31:03 -07:00
Evan Czaplicki
51821fccfd Make sure slashes get converted first so that they don't get added accidentally for other escaped characters 2013-10-04 11:52:16 -07:00
Evan Czaplicki
f7ef0d8dc2 Get rid of comments from when emacs could not figure out syntax highlighting 2013-10-04 11:41:11 -07:00
Evan Czaplicki
1f5c0373a5 Take out special case for [Char] in show 2013-10-04 11:40:46 -07:00
Evan Czaplicki
cbd136dbf6 Use JS.fromList and JS.toList when appropriate 2013-10-04 11:07:40 -07:00
Evan Czaplicki
af54dd33db Correct map and filter 2013-10-04 10:56:34 -07:00
Evan Czaplicki
59445e197a Fix string reversal 2013-10-04 10:53:34 -07:00
Evan Czaplicki
29aa809504 Add length to the String library 2013-10-04 09:58:37 -07:00
Evan Czaplicki
385f400269 Get the String module working properly 2013-10-02 17:41:58 -07:00
Evan Czaplicki
0703f48a89 Fix some string conversions 2013-10-02 17:37:07 -07:00
Evan Czaplicki
402f048bc9 Make the module docs parse properly 2013-10-02 15:57:26 -07:00
Evan Czaplicki
efb30dd648 Properly import the Maybe type 2013-10-02 15:57:12 -07:00
Evan Czaplicki
57e7217488 Get rid of unnecessary imports 2013-10-02 15:57:01 -07:00
Evan Czaplicki
51413f92e3 Add String as a proper Elm library, remove alias to [Char] 2013-10-02 15:21:00 -07:00
Evan Czaplicki
172884b594 Continue filling out the string library 2013-10-02 15:06:22 -07:00
Evan Czaplicki
df67fe5ec2 Start on the String library 2013-10-02 01:03:03 -07:00
Evan Czaplicki
ab8ff11960 Get rid of split and make repeat significantly faster 2013-10-02 01:02:51 -07:00
Evan Czaplicki
3459672725 merges was right biased by accident 2013-09-30 02:08:51 -07:00
Evan Czaplicki
b40f2958d4 New convention for storing module values, fixes bug
Before it was not possible to add values to anything except leafs of
the namespace structure.
2013-09-30 01:32:27 -07:00
Evan Czaplicki
2cb4fd8973 Merge branch 'dev' of https://github.com/evancz/Elm into dev 2013-09-30 01:06:33 -07:00
Evan Czaplicki
dcbe2fc245 Change the format of module instantiation
Currently, it's only possible to create modules at the leafs of the
namespace structure. This CL lifts that restriction.

Get rid of "use strict" in many cases.
2013-09-30 00:44:31 -07:00
Max Goldstein
0f182c653d Fix runtime error with Random.float.
Rename JS function to avoid conflicting with reserved words, as enforced by
commit 40ea6df24 (found with git bisect).
2013-09-29 10:36:41 -04:00
Evan Czaplicki
045852a0c5 Move function around in docs 2013-09-24 23:17:56 -04:00
Max Goldstein
fa52b0f433 Somehow isEmpty got dropped from the docs. 2013-09-24 09:17:03 -04:00