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
37878528bf
Check for variable shadowing
...
When this code was originally written, all variables were given unique
names, making it unnecessary to check for shadowing.
2013-10-13 17:36:21 -04:00
Evan Czaplicki
78242ef95b
Merge pull request #290 from jsl/better_server_error_messages
...
Improve error messages when elm input file or binary can't be found
2013-10-11 20:04:01 -07:00
Evan Czaplicki
fb16adb92a
Fix the problem with split
from issue #289
2013-10-11 22:04:53 -04:00
Justin Leitgeb
10f13d107d
Modify code to follow hlint suggestions
2013-10-11 20:50:44 -04:00
Justin Leitgeb
952c02fabf
Improve error messages when elm input file or binary can't be found
...
There are a few problems currently with the elm server:
1. When the elm binary is not found, a nondescript error is displayed
2. When a file has a suffix .elm but the file is not found, the same error
as in (1) is displayed
3. When a non-existing file ending in .elm is requested, the error code is
incorrect - the elm-server returns a 400 instead of a 404
The following is the error message that shows up in cases (1) and (2) above:
Server error: elm-server-cache: getDirectoryContents: does not exist (No such file or directory)
This commit fixes the generic runtime errors (source of (1) and (2) above) by
guarding against trying to delete a non-existing directory. It also fixes the
HTTP code for non-existing .elm files by returning the general Happstack 404
page that is returned for other not-found requests.
2013-10-11 20:44:29 -04:00
Justin Leitgeb
05dbca5120
Fit code within 80 characters
2013-10-11 09:04:11 -05: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
15aec26799
Merge pull request #288 from aforemny/dev
...
Relax mtime test in alreadyCompiled
2013-10-09 10:25:43 -07:00
Alexander Foremny
484e14a296
Relax mtime test in alreadyCompiled
2013-10-09 13:10:35 +02:00
Evan Czaplicki
6b28928067
cosmetic: fix typo and remove redundancy
2013-10-08 20:06:26 -07:00
Evan Czaplicki
e85c8f18dc
Fix issue #286
...
That was a silly one :) Thanks for the report @mgold.
2013-10-08 20:06:26 -07:00
Evan Czaplicki
ea38376358
Cosmetic: import the prefixed version of Generate.Cases
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
de52caca8e
Add --src-dir flag
...
Can be used multiple times. Makes it possible to have complex directory
structure without cluttering up module names in Elm files.
2013-10-05 16:12:25 -07: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
ea0679463f
Merge branch 'fast-strings' into dev
2013-10-03 23:55:02 -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
88680c8bc9
Generate native JS strings for Elm Strings
2013-10-02 16:56:14 -07:00
Evan Czaplicki
958fb1c896
Treat strings like any other pattern literal
2013-10-02 16:55:46 -07:00
Evan Czaplicki
dce5e3eade
Add String as an appendable type
2013-10-02 16:04:30 -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
76b2e56981
Add Strings as a primitive in the compiler
2013-10-02 15:56:43 -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