Skip to content

Commit ab56e9a

Browse files
committed
Keep track of default-packages
1 parent 19e5e55 commit ab56e9a

File tree

331 files changed

+53212
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+53212
-0
lines changed

default-packages/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
These are the default packages that elm-init installs
2+
```
3+
direct:
4+
"elm/browser": "1.0.2"
5+
"elm/core": "1.0.5"
6+
"elm/html": "1.0.0"
7+
indirect:
8+
"elm/json": "1.1.3"
9+
"elm/time": "1.0.0"
10+
"elm/url": "1.0.0"
11+
"elm/virtual-dom": "1.0.3"
12+
```
13+
14+
And I generated such tarballs:
15+
16+
1. The default packages that elm-init installs (only source files) `default-packages.tar.gz` is 193.3KiB
17+
2. If I also include http, random and url `default-with-http-random-url.tar.gz` grows to 230.3KiB
18+
3. When I include both sources and built `artifacts.dat` and `docs.json` files, `with-sources-and-artifacts.tar.gz` takes 403.3KiB
19+
4. If I remove the Elm and js source files from that, it is only 256.1KiB
20+
5. And if I remove http and random (and their deps) from that, `artifacts-and-docs.without-http-random.tar.gz` shrinks to 214.7KiB (same packages as in 1)
256 KB
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright 2017-present Evan Czaplicki
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Elm in the Browser!
2+
3+
This package allows you to create Elm programs that run in browsers.
4+
5+
6+
## Learning Path
7+
8+
**I highly recommend working through [guide.elm-lang.org][guide] to learn how to use Elm.** It is built around a learning path that introduces concepts gradually.
9+
10+
[guide]: https://guide.elm-lang.org/
11+
12+
You can see the outline of that learning path in the `Browser` module. It lets you create Elm programs with the following functions:
13+
14+
1. [`sandbox`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#sandbox) — react to user input, like buttons and checkboxes
15+
2. [`element`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#element) — talk to the outside world, like HTTP and JS interop
16+
3. [`document`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#document) &mdash; control the `<title>` and `<body>`
17+
4. [`application`](https://package.elm-lang.org/packages/elm/browser/latest/Browser#application) &mdash; create single-page apps
18+
19+
This order works well because important concepts and techniques are introduced at each stage. If you jump ahead, it is like building a house by starting with the roof! So again, **work through [guide.elm-lang.org][guide] to see examples and really *understand* how Elm works!**
20+
21+
This order also works well because it mirrors how most people introduce Elm at work. Start small. Try using Elm in a single element in an existing JavaScript project. If that goes well, try doing a bit more. Etc.

default-packages/artifacts-and-docs/elm-home/0.19.1/packages/elm/browser/1.0.2/docs.json

+1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"type": "package",
3+
"name": "elm/browser",
4+
"summary": "Run Elm in browsers, with access to browser history for single-page apps (SPAs)",
5+
"license": "BSD-3-Clause",
6+
"version": "1.0.2",
7+
"exposed-modules": [
8+
"Browser",
9+
"Browser.Dom",
10+
"Browser.Events",
11+
"Browser.Navigation"
12+
],
13+
"elm-version": "0.19.0 <= v < 0.20.0",
14+
"dependencies": {
15+
"elm/core": "1.0.0 <= v < 2.0.0",
16+
"elm/html": "1.0.0 <= v < 2.0.0",
17+
"elm/json": "1.0.0 <= v < 2.0.0",
18+
"elm/time": "1.0.0 <= v < 2.0.0",
19+
"elm/url": "1.0.0 <= v < 2.0.0",
20+
"elm/virtual-dom": "1.0.2 <= v < 2.0.0"
21+
},
22+
"test-dependencies": {}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright (c) 2018-present, Evan Czaplicki
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above
12+
copyright notice, this list of conditions and the following
13+
disclaimer in the documentation and/or other materials provided
14+
with the distribution.
15+
16+
* Neither the name of Evan Czaplicki nor the names of other
17+
contributors may be used to endorse or promote products derived
18+
from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Bytes
2+
3+
Work with densely packed sequences of bytes.
4+
5+
The goal of this package is to support **network protocols** such as ProtoBuf. Or to put it another way, the goal is to have packages like `elm/http` send fewer bytes over the wire.
6+
7+
8+
## Motivation = [A vision for data interchange in Elm](https://gist.github.com/evancz/1c5f2cf34939336ecb79b97bb89d9da6)
9+
10+
Please read it!
11+
12+
13+
## Example
14+
15+
This package lets you create encoders and decoders for working with sequences of bytes. Here is an example for converting between `Point` and `Bytes` values:
16+
17+
```elm
18+
import Bytes exposing (Endianness(..))
19+
import Bytes.Encode as Encode exposing (Encoder)
20+
import Bytes.Decode as Decode exposing (Decoder)
21+
22+
23+
-- POINT
24+
25+
type alias Point =
26+
{ x : Float
27+
, y : Float
28+
, z : Float
29+
}
30+
31+
toPointEncoder : Point -> Encoder
32+
toPointEncoder point =
33+
Encode.sequence
34+
[ Encode.float32 BE point.x
35+
, Encode.float32 BE point.y
36+
, Encode.float32 BE point.z
37+
]
38+
39+
pointDecoder : Decoder Point
40+
pointDecoder =
41+
Decode.map3 Point
42+
(Decode.float32 BE)
43+
(Decode.float32 BE)
44+
(Decode.float32 BE)
45+
```
46+
47+
Rather than writing this by hand in client or server code, the hope is that folks implement things like ProtoBuf compilers for Elm.
48+
49+
Again, the overall plan is described in [**A vision for data interchange in Elm**](https://gist.github.com/evancz/1c5f2cf34939336ecb79b97bb89d9da6)!
50+
51+
52+
## Scope
53+
54+
**This API is not intended to work like `Int8Array` or `Uint16Array` in JavaScript.** If you have a concrete scenario in which you want to interpret bytes as densely packed arrays of integers or floats, please describe it on [https://discourse.elm-lang.org/](https://discourse.elm-lang.org/) in a friendly and high-level way. What is the project about? What do densely packed arrays do for that project? Is it about perf? What kind of algorithms are you using? Etc.
55+
56+
If some scenarios require the mutation of entries in place, special care will be required in designing a nice API. All values in Elm are immutable, so the particular API that works well for us will probably depend a lot on the particulars of what folks are trying to do.

default-packages/artifacts-and-docs/elm-home/0.19.1/packages/elm/bytes/1.0.8/docs.json

+1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"type": "package",
3+
"name": "elm/bytes",
4+
"summary": "Work with sequences of bytes (a.k.a. ArrayBuffer, typed arrays, DataView)",
5+
"license": "BSD-3-Clause",
6+
"version": "1.0.8",
7+
"exposed-modules": [
8+
"Bytes",
9+
"Bytes.Encode",
10+
"Bytes.Decode"
11+
],
12+
"elm-version": "0.19.0 <= v < 0.20.0",
13+
"dependencies": {
14+
"elm/core": "1.0.1 <= v < 2.0.0"
15+
},
16+
"test-dependencies": {}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright 2014-present Evan Czaplicki
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Core Libraries
2+
3+
Every Elm project needs this package!
4+
5+
It provides **basic functionality** like addition and subtraction as well as **data structures** like lists, dictionaries, and sets.
6+
7+
> **New to Elm?** Go to [elm-lang.org](https://elm-lang.org) for an overview.
8+
9+
10+
## Default Imports
11+
12+
The modules in this package are so common, that some of them are imported by default in all Elm files. So it is as if every Elm file starts with these imports:
13+
14+
```elm
15+
import Basics exposing (..)
16+
import List exposing (List, (::))
17+
import Maybe exposing (Maybe(..))
18+
import Result exposing (Result(..))
19+
import String exposing (String)
20+
import Char exposing (Char)
21+
import Tuple
22+
23+
import Debug
24+
25+
import Platform exposing ( Program )
26+
import Platform.Cmd as Cmd exposing ( Cmd )
27+
import Platform.Sub as Sub exposing ( Sub )
28+
```
29+
30+
The intention is to include things that are both extremely useful and very unlikely to overlap with anything that anyone will ever write in a library. By keeping the set of default imports relatively small, it also becomes easier to use whatever version of `map` suits your fancy. Finally, it makes it easier to figure out where the heck a function is coming from.

default-packages/artifacts-and-docs/elm-home/0.19.1/packages/elm/core/1.0.5/docs.json

+1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"type": "package",
3+
"name": "elm/core",
4+
"summary": "Elm's standard libraries",
5+
"license": "BSD-3-Clause",
6+
"version": "1.0.5",
7+
"exposed-modules": {
8+
"Primitives": [
9+
"Basics",
10+
"String",
11+
"Char",
12+
"Bitwise",
13+
"Tuple"
14+
],
15+
"Collections": [
16+
"List",
17+
"Dict",
18+
"Set",
19+
"Array"
20+
],
21+
"Error Handling": [
22+
"Maybe",
23+
"Result"
24+
],
25+
"Debug": [
26+
"Debug"
27+
],
28+
"Effects": [
29+
"Platform.Cmd",
30+
"Platform.Sub",
31+
"Platform",
32+
"Process",
33+
"Task"
34+
]
35+
},
36+
"elm-version": "0.19.0 <= v < 0.20.0",
37+
"dependencies": {},
38+
"test-dependencies": {}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright (c) 2018-present, Evan Czaplicki
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above
12+
copyright notice, this list of conditions and the following
13+
disclaimer in the documentation and/or other materials provided
14+
with the distribution.
15+
16+
* Neither the name of Evan Czaplicki nor the names of other
17+
contributors may be used to endorse or promote products derived
18+
from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)