Commit graph

331 commits

Author SHA1 Message Date
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
Evan Czaplicki
46b988b34f Error on mod zero 2013-09-22 10:44:51 -04:00
Max New
f196eace07 Remove unused code in Dict library. 2013-09-18 01:49:23 -07:00
Max New
9523a81704 Dict: Implement remove. 2013-09-18 01:49:07 -07:00
Evan Czaplicki
c2eecc2084 Properly parse all user-defined infix declarations 2013-09-15 14:39:56 -07:00
Evan Czaplicki
a40cd3cc06 Make the build process look nicer 2013-09-15 14:39:56 -07:00