Commit graph

1945 commits

Author SHA1 Message Date
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
Evan Czaplicki
47c6cbc38f Merge branch 'master' into dev 2013-11-26 00:12:42 -06:00
Evan Czaplicki
9633af6723 Add Generate.Markdown to .cabal file, remove -O2 flag 2013-11-25 23:48:20 -06:00
Evan Czaplicki
bd77cc6e15 Report docs errors to stderr 2013-11-25 23:12:10 -06:00
Evan Czaplicki
e32eab0e62 Merge branch 'master' into dev
Conflicts:
	compiler/Generate/JavaScript.hs
	compiler/Generate/Noscript.hs
	compiler/Parse/Expression.hs
	compiler/SourceSyntax/Expression.hs
2013-11-22 12:22:29 -08:00
Evan Czaplicki
c8643484be Abstract out the code for markdown parsing, making it easier to switch out the implementation 2013-11-22 12:12:22 -08:00
Justin Leitgeb
ae2465c633 Add initial CONTRIBUTING.md 2013-11-22 12:07:52 -05: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
fe047d5156 Merge branch 'master' into dev 2013-11-19 22:40:05 -08:00
Evan Czaplicki
f0d9d3be1d Fix minor indentation issue with eightyCharLines 2013-11-19 22:39:48 -08:00
Evan Czaplicki
bccfece2c1 Merge branch 'master' into dev 2013-11-19 22:34:08 -08:00
Evan Czaplicki
f73a6ff9f9 Add an occurs check to finally resolve #294
Add it in the more clever location suggested by Pottier and Remy. Also
change the style of error messages to get rid of the expected/actual
problem for now, and make hints read more smoothly.
2013-11-19 22:31:38 -08:00
Evan Czaplicki
54a99b7309 Add error and explanation for infinite type aliases 2013-11-19 22:29:25 -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
Evan Czaplicki
a49d381c09 Merge pull request #345 from i-e-b/master
Fix to Json Boolean native constructor
2013-11-18 08:04:22 -08:00
i-e-b
75ad25b7ee Fix to Json Boolean native constructor 2013-11-15 15:58:16 +00:00
Evan Czaplicki
bbede87f1a Merge pull request #338 from jsl/fix_unsafe_io
Remove instance of unsafePerformIO
2013-11-14 07:26:57 -08: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
Justin Leitgeb
8fc72d2b30 Remove instance of unsafePerformIO 2013-11-12 22:22:49 -05:00
Evan Czaplicki
0fcd342b78 Minor reformat of an error message to keep each line under 80 characters 2013-11-11 16:30:48 +01:00
Evan Czaplicki
9d9e9d2388 Just show the value of located things, not the location. 2013-11-11 15:40:51 +01:00
Evan Czaplicki
07187bd811 Better error when bad backslashing is used in strings 2013-11-11 15:40:51 +01:00
Evan Czaplicki
9b55e953de Merge pull request #323 from Sheeo/transform-incomplete-matches
Incomplete matches in transform directory
2013-11-11 06:40:11 -08:00
Evan Czaplicki
d6a3a18704 Merge pull request #322 from Sheeo/type-incomplete-matches
Incomplete matches in Type.hs
2013-11-11 06:35:10 -08:00
Evan Czaplicki
5bde7cf4b5 Merge pull request #321 from Sheeo/sourcesyntax-matches
Incomplete matches in sourcesyntax
2013-11-11 06:29:55 -08:00
Michael Sondergaard
8594ab3780 Improve error message 2013-11-11 15:29:41 +01:00
Michael Sondergaard
fdea1470f6 Also catch Just [] as an error
Motivation here is that if we can't even extract a name and description, it's
an error.
2013-11-11 15:15:42 +01:00
Evan Czaplicki
4b480a9010 Merge pull request #331 from jsl/327_fix_invalid_interface_map
Fix deserialization of interfaces in Prelude
2013-11-07 10:02:44 -08:00
Evan Czaplicki
3ce4b09013 Update README.md 2013-11-07 18:59:50 +01:00
Evan Czaplicki
0728d5feb3 try to make install instructions clearer 2013-11-07 18:59:08 +01:00
Evan Czaplicki
13928107eb Update README.md 2013-11-07 18:57:39 +01:00
Evan Czaplicki
3d9f242465 cosmetic change 2013-11-07 18:56:49 +01:00
Evan Czaplicki
87d339b7c9 add note about clang on OS X 10.9 2013-11-07 18:55:45 +01:00
Justin Leitgeb
9ae1825939 Fix deserialization of interfaces in Prelude
We previously had to fix a corrupt Map by changing it to a List and then back
into a Map. It turns out we had to do this because the original data structure
on disk wasn't a Map to begin with, but a List. It was previously assumed to be
a Map by the compiler because the first function that it was passed to took a
type of `Interfaces` which is a Map of interface definitions. Unfortunately this
didn't cause a runtime error when Haskell found out that the structure wasn't
deserialized into a Map. Instead Haskell happily created a broken Map that
couldn't find members some of the members that it contained (it could find
somewhere around the first half of its members, but the second half it reported
as missing when they were clearly present).

Changing the type of the first function that the deserialized structure is
passed to from a Map (actually Interfaces which is a type of Map) to a List
allows Haskell to infer the correct type to deserialize into and makes
everything work as expected.
2013-11-07 10:21:37 -05:00
Evan Czaplicki
b90e832e6b Merge pull request #330 from timthelion/patch-1
Update String.elm
2013-11-07 04:11:04 -08:00
timthelion
2d4d1678c3 Update String.elm
You had your types swapped.
2013-11-07 12:51:40 +01:00
Michael Sondergaard
12a58167a9 Add a catchall to inner toDefs function
I think it would be more appropriate to reorder this code as to only case-match
over defs once, but I'm not sure of how to approach this (yet).
2013-11-04 21:25:36 +01:00
Michael Sondergaard
158c70eee7 Fix typo 2013-11-04 21:09:22 +01:00
Michael Sondergaard
4a111890ed Add invalid serialization errors to Module.hs 2013-11-04 20:34:29 +01:00
Michael Sondergaard
67924d1c8a Remove catch-all match in Declaration
These ought to actually be written out, as the previous TODO message stated,
but at least this way the compiler will warn us when adding a new Decl.
2013-11-04 20:34:29 +01:00
Michael Sondergaard
a0cbe84f1d Throw an error when deserializing a bad type
This error should never be encountered, as long as we always update the get
function when the put function is, as required by get . put == id.
2013-11-04 20:32:53 +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
00dfb69367 Modify error messages for bad build artifacts to wrap more nicely on the terminal 2013-11-04 16:37:15 +01:00