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
0d5f1fe2d2
Fix fast repeat
2013-10-06 11:00:53 -07:00
Evan Czaplicki
a505f7e030
indent properly
2013-10-04 15:31: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
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
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
Alexander Noriega
074bb08f8e
Rename replicate to repeat.
2013-08-31 21:23:23 -03:00
Alexander Noriega
d6e7172f45
Define convenience function List.replicate.
2013-08-31 16:29:35 -03:00
Evan Czaplicki
067773d601
Update the List library to use the number, comparable, and appendable type variables
2013-07-25 16:40:39 +02:00
evancz
9a40249e05
Fix the confusion with "Cons" and "Nil" in issue #176 .
...
Also add the ExplicitList expression.
2013-06-20 21:25:10 -07:00
evancz
970277f7f2
Minor documentation fix for JavaScript/Experimental.elm
...
Remove logging in Native/List.js
2013-05-21 18:27:22 +02:00
evancz
5044724cda
Improve documentation a bit and get split
working properly.
2013-05-17 12:49:31 +02:00
evancz
986010fb6a
Add plainText
back. Fix some types. Fix a bug in mergeEither
.
2013-04-10 00:52:53 -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
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
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
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
a1b890adc3
Lots of tiny fixes to get the RTS working!
2013-03-12 00:48:11 -07:00
evancz
944a056122
Decide on convention that corresponding Native modules get exported automatically, no need to copy everything through in the Elm file.
...
Also extend `sort` to work on any comparable values.
2013-03-10 00:12:10 -08:00
evancz
851d2ff221
Create the Utils module which contains any utilities that can be created before all other modules. Switch to using Utils in existing modules.
...
Add the Error module for reporting the rare runtime errors that are possible.
2013-03-09 19:02:07 -08:00
evancz
0fe301aaba
Convert the List and Misc modules.
2013-03-08 23:31:19 -08:00
evancz
79a747cfc6
Rename core/ to libraries/ to make it more clear what is going on with the directory structure.
2013-03-06 09:28:53 -08:00