Evan Czaplicki
598058e1db
Get rid of the word "simply". It is a condescending word.
2014-01-17 19:19:30 +01:00
Evan Czaplicki
64b8e73a3d
Merge branch 'jsl-add_travis' into dev
2014-01-17 18:25:52 +01:00
Evan Czaplicki
73cff94ecd
resolve conflict in README!
2014-01-17 18:25:27 +01:00
Evan Czaplicki
6a382825d8
Add the always function
...
I want it, I do not want to rename constant, and I think it is a good
name.
2014-01-17 18:19:42 +01:00
Evan Czaplicki
996848ce86
Simplify the JS API for sending values to signal ports, making error handling more reasonable
2014-01-16 18:30:44 +01:00
Evan Czaplicki
1a1aff1bc8
restrict incoming ports to disallow data structures that contain signals, only "top-level" signals are allowed
2014-01-16 18:28:07 +01:00
Evan Czaplicki
0026466725
Merge pull request #452 from johnpmayer/arbitary-tipe
...
Added pretty.parse tests for SourceSyntax.Type
2014-01-16 02:42:52 -08:00
John P Mayer Jr
0cd2af27a6
used a more specific PP rendering to revert the changes to SS.Type pretty
2014-01-15 19:46:41 -05:00
John P Mayer Jr
d647bfdeda
Merge remote-tracking branch 'evan/dev' into arbitary-tipe
2014-01-15 19:27:50 -05:00
Christian Widera
62540a9065
Added support for .pointer-events.
2014-01-15 23:01:32 +01:00
Evan Czaplicki
b5e731122d
Improve error messages as described in a list discussion
...
https://groups.google.com/forum/#!topic/elm-discuss/X4V4edxeFKI
2014-01-15 19:22:19 +01:00
Evan Czaplicki
b9e627f78e
Merge in @maxsnew's fixes from #424
...
Tested on small file where I changed a dependency and on elm-lang.org
code.
2014-01-15 13:54:40 +01:00
Evan Czaplicki
665312543b
experimental support for setting favicons
...
Works in Chrome and FF for sure. Safari definitely does not work. Not
sure about Opera and IE9+
2014-01-15 12:59:49 +01:00
John P Mayer Jr
853e63c918
better shrinking and not-infinite-dump generation results in passed tests!
2014-01-15 01:39:36 -05:00
John P Mayer Jr
bb3e4ca1e7
really didn't need this
2014-01-14 22:14:01 -05:00
John P Mayer Jr
d72cbbffe3
also should be able to check both sub-types are valid
2014-01-14 22:03:49 -05:00
John P Mayer Jr
c91815ebda
turned off Data and Record types, found a bad test case with lambda
2014-01-14 21:30:03 -05:00
John P Mayer Jr
afb6bd5023
better gen and shrink, but stack overflows
2014-01-14 19:33:40 -05:00
John P Mayer Jr
1b44fbf24a
Merge remote-tracking branch 'evan/dev' into arbitary-tipe
2014-01-14 12:27:38 -05:00
Evan Czaplicki
c602071022
Cosmetic: use a qualified import to clarify uses of isTuple
2014-01-14 16:27:28 +01:00
Evan Czaplicki
93321eca63
Fix issue with unparenthesized patterns in pretty printed lambdas pointed out by @JoeyEremondi in #446
...
Regarding the proposed fix in #446 : The pattern pretty printer is
correct for cases where you just want the pattern, such as in
case-expressions. In some contexts, parentheses are required though, so
this fix addresses those places specifically.
2014-01-14 16:27:06 +01:00
Evan Czaplicki
6febb89fcd
Fix pretty printing for tuples as discoered by @JoeyEremondi and/or @jmite in PR #446
...
This fix uses some existing functions for reliably figuring out if
something is a tuple.
2014-01-14 16:13:18 +01:00
Evan Czaplicki
1191c8a665
Add comments to explain the thought process and structure of the AST
2014-01-14 16:02:23 +01:00
Evan Czaplicki
beabf941e4
Rename "output" to "ports" and "input" to "signal"
2014-01-14 14:05:35 +01:00
Evan Czaplicki
0fd74d4fad
Give nicer error messages when user provides values for ports that do not exist
2014-01-14 14:00:19 +01:00
Evan Czaplicki
f619026fcc
Handle function exports
2014-01-14 13:58:33 +01:00
Evan Czaplicki
bc6ac142ae
Disallow signals-of-signals, functions that involve signals, and signals of functions
2014-01-14 13:28:43 +01:00
Evan Czaplicki
461abc0c6f
Correct check for outgoing higher order functions
...
A function can appear arbitrarily nested in a data structure, but that
function cannot have more functions within it.
2014-01-14 12:49:22 +01:00
Evan Czaplicki
6c1d2d7bf3
cosmetic: generalize collectLambdas
to make a list of types, move prettifying code to the Pretty instance
2014-01-14 12:48:54 +01:00
Evan Czaplicki
36a5c1ddeb
Handle signals properly, fix outgoing lists, improve errors for missing fields
2014-01-14 12:32:33 +01:00
Evan Czaplicki
2f38eec8f8
Show nicer error messages when module initialization fails due to invalid port values
2014-01-14 11:49:33 +01:00
Evan Czaplicki
cbf0b60df8
Fix checks for node.js on stdout and stderr ports
2014-01-14 11:48:58 +01:00
Evan Czaplicki
53389ffbf8
Make instanceof check safer, check if it's an object before using instance of
2014-01-14 11:46:17 +01:00
Evan Czaplicki
c9310cc4d5
cosmetic: simplify traversal of maybe
2014-01-14 11:45:40 +01:00
John P Mayer Jr
c616557618
added some guards. todo turn this into correct Gen. still one failcase
2014-01-14 02:47:11 -05:00
John P Mayer Jr
d92ac795c1
new instance for SS.Type
2014-01-14 00:32:21 -05:00
Evan Czaplicki
1650aad829
Allow the title port to work on Strings and Signals of Strings
2014-01-13 21:12:18 +01:00
Evan Czaplicki
32fbbca5b2
Generate conversion code for ports
2014-01-13 19:32:54 +01:00
Evan Czaplicki
63243ca457
Minor changes to checks for ports
2014-01-13 19:24:39 +01:00
Evan Czaplicki
329077f1ef
Get rid of input handlers for now
2014-01-13 19:24:17 +01:00
Max New
0e40a32adc
Style fixes and -Walls for a couple files.
2014-01-13 09:21:39 -06:00
Evan Czaplicki
fe3b3439b7
Make port checks more permissive
2014-01-13 13:52:18 +01:00
Evan Czaplicki
e2aff93df9
Make the fix from #435
2014-01-13 11:01:10 +01:00
Evan Czaplicki
2a0a0e6e3c
Simplify SourceSyntax.Type AST, making record extension more restrictive as discussed with @maxsnew
2014-01-13 11:01:10 +01:00
Evan Czaplicki
9dda928ac4
make conversion functions for input ports optional
2014-01-13 11:01:10 +01:00
Evan Czaplicki
828c2c7372
Give more reasonable names to incoming and outgoing ports
2014-01-13 11:01:10 +01:00
Evan Czaplicki
9c816d3a7a
Merge pull request #445 from maxsnew/dict
...
Fix Dict Bug
2014-01-13 01:43:18 -08:00
Evan Czaplicki
8cadc4d92c
Remove comment for things that no longer exist
2014-01-12 13:06:50 +01:00
Max New
efdea2f0b1
Fix Dict insert bug by using generalized balance function
...
Also removes now dead code and rearchitects a few things to statically
eliminate possible future bugs.
2014-01-08 19:02:06 -06:00
Evan Czaplicki
62bd720882
Make the char parser more restrictive to try to get better errors.
...
Before it permitted sequences of unescaped chars.
2014-01-08 11:36:51 +01:00