Skip to content

Commit 527c3de

Browse files
Update package set for PureScript 0.14 (#213)
1 parent 20d154a commit 527c3de

File tree

4 files changed

+94
-109
lines changed

4 files changed

+94
-109
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,28 @@
1818

1919
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`.
2020

21-
To update to a more recent package set, first update the `upstream` package set in `staging/packages.dhall`, and then run:
21+
To update to a more recent package set, first update the `upstream` package set in `staging/packages.dhall`:
22+
23+
```
24+
$ spago upgrade-set
25+
```
26+
27+
Then, set the dependencies key in the `spago.dhall` file to be an empty list. This will require a type annotation of `List Text`:
28+
29+
```dhall
30+
{ name = "try-purescript-server"
31+
, dependencies = [] : List Text
32+
, ...
33+
}
34+
```
35+
36+
Finally, run this command to install every package in the package set:
2237

2338
```
2439
$ spago ls packages | cut -f 1 -d ' ' | xargs spago install
2540
```
2641

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.
42+
Before deploying an updated package set, someone (your reviewer) should check that the memory required to hold the package set's externs files does not exceed that of the try.purescript.org server.
2843

2944
### Control Features via the Query String
3045

server/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{-# LANGUAGE DeriveGeneric #-}
33
{-# LANGUAGE LambdaCase #-}
44
{-# LANGUAGE OverloadedStrings #-}
5+
{-# LANGUAGE PatternGuards #-}
56

67
module Main (main) where
78

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-20200507/packages.dhall sha256:9c1e8951e721b79de1de551f31ecb5a339e82bbd43300eb5ccfb1bf8cf7bbd62
2+
https://github.com/purescript/package-sets/releases/download/psc-0.14.0-20210324/packages.dhall sha256:b4564d575da6aed1c042ca7936da97c8b7a29473b63f4515f09bb95fae8dddab
33

44
let overrides = {=}
55

0 commit comments

Comments
 (0)