Skip to content

Commit 043732f

Browse files
hdgarroodth-awake
andauthored
Make the whole package set available (#173)
* Make the whole package set available Resolves #154. On my machine locally, with the RTS flags in `deploy/start`, the resident memory seems to sit fairly stable around 1.89G, which is encouraging. I've tweaked the RTS flags slightly in order to make better use of the resized droplet, which has 4GB memory and 2 virtual CPU cores. * Add big-integer shim * Bump React version and add uuid and decimal Co-authored-by: Thomas R. Honeyman <[email protected]>
1 parent 6672378 commit 043732f

File tree

5 files changed

+398
-52
lines changed

5 files changed

+398
-52
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
- Persistent session
1515
- Load PureScript code from Github Gists
1616

17+
### Which Libraries are Available?
18+
19+
Try PureScript aims to provide a complete, recent package set from <https://github.com/purescript/package-sets>. The available libraries are those listed in `staging/spago.dhall`, at the versions in the package set mentioned in `staging/packages.dhall`.
20+
21+
To update to a more recent package set, first update the `upstream` package set in `staging/packages.dhall`, and then run:
22+
23+
```
24+
$ spago ls packages | cut -f 1 -d ' ' | xargs spago install
25+
```
26+
27+
to install every package in the set. Before deploying an updated package set, someone should check that the memory required to hold the package set's externs files does not exceed that of the try.purescript.org server.
28+
1729
### Control Features via the Query String
1830

1931
Most of these features can be controlled not only from the toolbar, but also using the [query parameters](https://en.wikipedia.org/wiki/Query_string):

client/src/Try/Shim.purs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,28 @@ type Shim =
1212
shims :: Object Shim
1313
shims = Object.fromFoldable
1414
[ Tuple "react"
15-
{ url: "https://unpkg.com/[email protected].0/umd/react.development.js"
15+
{ url: "https://unpkg.com/[email protected].1/umd/react.development.js"
1616
, deps: []
1717
}
1818
, Tuple "react-dom"
19-
{ url: "https://unpkg.com/[email protected].0/umd/react-dom.development.js"
19+
{ url: "https://unpkg.com/[email protected].1/umd/react-dom.development.js"
2020
, deps: [ "react" ]
2121
}
2222
, Tuple "react-dom/server"
23-
{ url: "https://unpkg.com/[email protected].0/umd/react-dom-server.browser.development.js"
23+
{ url: "https://unpkg.com/[email protected].1/umd/react-dom-server.browser.development.js"
2424
, deps: [ "react" ]
2525
}
26+
, Tuple "big-integer"
27+
{ url: "https://unpkg.com/[email protected]/BigInteger.min.js"
28+
, deps: []
29+
}
30+
, Tuple "decimal.js"
31+
{ url: "https://unpkg.com/[email protected]/decimal.min.js"
32+
, deps: []
33+
}
34+
, Tuple "uuid"
35+
{ url: "https://cdnjs.cloudflare.com/ajax/libs/uuid/8.1.0/uuid.min.js"
36+
, deps: []
37+
}
2638
]
2739

deploy/start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -ex
44
set -o noglob
55
export XDG_CACHE_HOME=.spago-cache
66
spago install
7-
exec trypurescript +RTS -N1 -A128m -M750M -RTS 8081 $(spago sources)
7+
exec trypurescript +RTS -N2 -A128m -M3G -RTS 8081 $(spago sources)

staging/packages.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.13.6-20200404/packages.dhall sha256:f239f2e215d0cbd5c203307701748581938f74c4c78f4aeffa32c11c131ef7b6
2+
https://github.com/purescript/package-sets/releases/download/psc-0.13.6-20200507/packages.dhall sha256:9c1e8951e721b79de1de551f31ecb5a339e82bbd43300eb5ccfb1bf8cf7bbd62
33

44
let overrides = {=}
55

0 commit comments

Comments
 (0)