Commit Graph

27 Commits

Author SHA1 Message Date
Evan Czaplicki
77bac8f330 Remove Elm.Name and switch elm.cabal file to new name format
Compared to the 0.19 release when compiling elm-spa example from
scratch on my computer, this does 17% less allocation and total time
goes from 0.45 to 0.38 (~15%)

Being able to customize the binary serialization format also means that
elmi, elmo, and dat files are a decent bit smaller. No more using
Word64 for the length of variables like “a” and “test”

Need to do some testing with larger codebases to see how this extends
though.
2018-11-19 14:17:57 -05:00
Evan Czaplicki
545e14d91a Add Data.Utf8 to elm.cabal for 8% allocation reduction
It needs compareByteArrays# which is only available in newer versions
of base and ghc-prim, so this updates those dependencies as well.

The new base and ghc-prim ship with GHC 8.4.3 so I needed to update the
language-glsl constraint as well.
2018-11-15 18:01:25 -05:00
Evan Czaplicki
a936e95a4d Switch a link to HTTPS 2018-11-14 15:19:24 -05:00
Evan Czaplicki
76e90792bc Point to the new directory names 2018-11-13 17:18:15 -05:00
Evan Czaplicki
4db0ed886d Add -rtsopts for alpha period
See if folks notice a perf regression from it.
2018-05-22 23:44:09 -05:00
Evan Czaplicki
4074a9800d Add code for elm init command 2018-05-22 09:46:52 -05:00
Evan Czaplicki
7dbdaae0e1 cosmetic: remove a bunch of commas 2018-05-22 09:46:52 -05:00
Evan Czaplicki
5c327b7b38 Connect to <package.elm-lang.org> less often
Do not connect:
- when elm-stuff/ is valid
- exploring constraints

Optional connect:
- when elm-stuff/ is invalid
- install

Mandatory connect:
- diff
- bump
- publish
2018-05-15 22:40:15 +02:00
Evan Czaplicki
f66de6c4ce Give a more helpful message on elm install 2018-05-10 19:21:48 +02:00
Evan Czaplicki
296396abf2 Introduce Localizer module
Start figuring out how to localize types again. This version is opaque,
allowing me to find all the current uses, and it can be constructed
from a list of source inputs. This should be good for `make` and `repl`
2018-04-18 14:28:56 +02:00
Evan Czaplicki
6d686c5b57 Make Generate.JavaScript.Mode its own module
This change also moves towards getting --debug working again. In
particular, if you are in debug mode, you must have the full transitive
set of module interfaces. By putting that information in the Mode, it
means it only needs to be loaded in that case. In dev and prod mode, no
extra work is needed.
2018-04-10 16:20:52 +02:00
Evan Czaplicki
6585f1faff Add back --debug flag, only generate debugger in that case 2018-04-08 14:22:39 +02:00
Evan Czaplicki
b1fd35f5f2 Update a bunch of files based on Doc changes 2018-04-07 19:55:49 +02:00
Evan Czaplicki
c25388e455 Get parts of reactor working / remove blaze dependency 2018-04-06 16:27:16 +02:00
Evan Czaplicki
606dad4d56 Move "NotFound" out of its own module 2018-04-05 14:04:57 +02:00
Evan Czaplicki
6be8d82c67 Make sure that Debug module is not used in --optimize mode
This is neat because you get one error message telling you all the
modules that have Debug remnants.

It is also neat because the Generate.Nitpick module seems like the
perfect place for things like “efficiently detect globally unused
definitions” and “detect packages that are no longer used”
2018-04-03 18:54:02 +02:00
Evan Czaplicki
dac392a778 Get rid of semigroups dependency 2018-04-03 17:18:52 +02:00
Evan Czaplicki
c368061e0c Get --output=index.html working again
Need to go through again later and make it prettier though.
2018-04-02 12:35:41 +02:00
Evan Czaplicki
ca6005ce59 Get JSON output for compiler errors in a nicer format 2018-03-28 15:26:51 +02:00
Evan Czaplicki
45be9d045d Update elm.cabal for new modules and renames 2018-03-27 18:03:30 +02:00
Evan Czaplicki
dba0611071 Update cabal file for module changes 2018-03-26 18:18:22 +02:00
Evan Czaplicki
2ce0625a32 Remove web socket dependencies for now 2018-02-22 18:39:13 -08:00
Evan Czaplicki
e7a83100aa Get rid of "pretty" dependency
I _think_ the logic for (toString OneLine) will be fine in practice,
but I’m not 100% certain. I’d like for there to be a certain path.
2018-02-22 17:03:07 -08:00
Evan Czaplicki
904b2bda61 Get TH stuff working
Slows build down quite a bit though :(
2018-02-22 11:34:08 -08:00
Evan Czaplicki
7bfab8267e Add all of the modules from various .cabal files 2018-02-22 11:05:32 -08:00
Evan Czaplicki
9b1607dc9f Match new Paths_elm name 2018-02-22 10:00:52 -08:00
Evan Czaplicki
6dbf13b4d2 Have terminal/ and browser/ for CLI and reactor 2018-02-21 18:26:29 -08:00