Evan Czaplicki
74d0482ace
Move show function to String library and get rid of Prelude library
2014-03-01 13:58:02 -05:00
Evan Czaplicki
dd1b3d4d7c
Restrict list interpolation to numbers!
2014-02-21 16:21:00 -05:00
Evan Czaplicki
05c8e0e30a
Add support for exponent notation for floating point numbers
...
Brought to my attention by this thread:
https://groups.google.com/forum/#!topic/elm-discuss/jQXmaqLHcIA
2014-02-19 08:57:08 -05:00
Evan Czaplicki
080eb0875c
Switch from "open" keyword to (..) to import everything
2014-02-17 17:55:51 +01:00
Evan Czaplicki
22bd40534e
cosmetic: use better style in a do block
2014-02-17 17:55:30 +01:00
Evan Czaplicki
2cfb343e93
Move getDataFile function so that it is not exposed to the outside world
2014-02-13 09:31:19 +01:00
Evan Czaplicki
efdc7a7744
Start using strict mode for everything
...
V8 engineer said it is always faster, so that’s probably reliable info
:)
2014-02-13 09:31:19 +01:00
Evan Czaplicki
25e88a20b2
Add type annotations
2014-02-13 09:31:19 +01:00
Evan Czaplicki
f116375ad2
Fix silly error that shows up when installing through cabal
2014-02-11 11:42:50 +01:00
Evan Czaplicki
4b80c13875
Fix style of error message for undefined variables
2014-02-10 23:21:22 +01:00
Evan Czaplicki
33bd016678
Check environment variable ELM_HOME if the files were not placed by cabal
2014-02-10 23:03:13 +01:00
Evan Czaplicki
d47407ef15
Fix silly mistake in formatting functions
...
Oops! @deadfoxygrandpa
2014-02-10 17:13:31 +01:00
Evan Czaplicki
f727bf9eda
Switch to representation of types discussed with @deadfoxygrandpa
2014-02-10 16:55:43 +01:00
Evan Czaplicki
5cc374744f
Attempt at new JSON representation of types
2014-02-10 15:11:35 +01:00
Evan Czaplicki
b2f3ff35dc
Begin using the new boundVarList function
2014-02-10 00:17:49 +01:00
Evan Czaplicki
9dd5dff279
Make AST more general and try to give its phases better names
...
Also change the constructors for the Pattern ADT
2014-02-10 00:17:33 +01:00
Evan Czaplicki
594ed1988a
Get rid of unused module
2014-02-10 00:08:05 +01:00
Evan Czaplicki
ce073551ac
Minor style change
2014-02-09 14:57:35 +01:00
Evan Czaplicki
458bf2b122
Minor style improvements, switch to using helper function
2014-02-09 14:23:10 +01:00
Evan Czaplicki
c4628749e1
Fix issue #491
...
contents of Maybe were not converted to JS on export
2014-02-08 17:05:52 +01:00
Evan Czaplicki
a5684ff356
Making #486 more in line with the style of the rest of the codebase
...
Actual style guidelines coming soon!
2014-02-08 16:03:04 +01:00
Joey Eremondi
8594f6ad69
Added Pretty instance for Module
2014-02-01 01:05:17 -06:00
DanDanDan
8d41059658
also improve the interpolation parser
2014-01-29 09:04:16 +01:00
DanDanDan
a5a6f2beb1
fix bad markdown performance
2014-01-29 02:25:26 +01:00
Evan Czaplicki
56c4fb936d
Merge pull request #439 from maxsnew/safeNames
...
Hack to make imported names safe.
2014-01-28 06:11:12 -08:00
Evan Czaplicki
50c2618d3a
Try to improve error messages in response to issue #479
2014-01-27 02:49:21 +01:00
Evan Czaplicki
df149b4c3a
Move documentation to make haddock happy
2014-01-20 23:25:59 +01:00
Evan Czaplicki
b00a8cb9b5
Add check that all ports appear in the "main" module
...
It is unclear what it means if ports are used in sub-modules, so to be
cautious, we want to rule it out in the first release. As people use
the API it’ll become clear how sub-module ports are necessary and what
problems they might cause.
2014-01-20 15:10:40 +01:00
Evan Czaplicki
066a164763
Rename the dummy paths file so that it does not register as C code!
2014-01-20 14:54:27 +01:00
Evan Czaplicki
f5351438ee
cosmetic: get rid of a (>>) in favor of a do-block
2014-01-20 14:04:36 +01:00
Evan Czaplicki
fc154f91cf
Use Build.Print to show errors
2014-01-20 14:01:53 +01:00
Evan Czaplicki
6ba394c9cb
Get rid of experimental code for handling "deriving"
2014-01-20 01:09:50 +01:00
Max New
53c2ab1531
Move splitDots and prevent a non-exhaustive pattern match warning
2014-01-18 17:44:11 -06:00
Max New
4a25c165a4
Hack to make imported names safe.
...
This fixes a bug where imported identifiers with reserved names were
not being changed during codegen.
2014-01-18 17:36:09 -06: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
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
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
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
afb6bd5023
better gen and shrink, but stack overflows
2014-01-14 19:33:40 -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
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