Skip to content

Migrate to spago v1#316

Draft
pete-murphy wants to merge 6 commits into
purescript:masterfrom
pete-murphy:migrate-to-spago-v1
Draft

Migrate to spago v1#316
pete-murphy wants to merge 6 commits into
purescript:masterfrom
pete-murphy:migrate-to-spago-v1

Conversation

@pete-murphy

@pete-murphy pete-murphy commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Description of the change

Resolves #315

This is a large diff, but most of that is in generated lockfiles (staging/spago.lock alone is 12,683 lines).

This migrates the client and staging Spago projects to use latest (1.0.4), and updates compiler version and package set to latest while I was at it. Note that 0.15.15 is latest version available on Hackage at time of writing.

For client updates, I just followed these instructions in Spago repo: https://github.com/purescript/spago#migrate-from-spagodhall-to-spagoyaml.

For staging/Haskell updates I followed the instructions in RELEASE.md that I also updated in these changes. I did not change stack.yaml because 0.15.15 is still on lts-20.9.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0 by @)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@pete-murphy pete-murphy force-pushed the migrate-to-spago-v1 branch 3 times, most recently from 46dbaec to 7f9b9a5 Compare June 6, 2026 13:11
Comment thread README.md Outdated
Comment thread client/src/Try/Config.js
@pete-murphy pete-murphy force-pushed the migrate-to-spago-v1 branch from 7f9b9a5 to 11e2e80 Compare June 13, 2026 19:39
@pete-murphy pete-murphy force-pushed the migrate-to-spago-v1 branch from 429d4ab to 9747a47 Compare June 13, 2026 20:25
@pete-murphy

pete-murphy commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

Oh no, I tried running locally with same memory settings as production build (set -o noglob && stack exec trypurescript -- +RTS -N2 -A128m -M3G -s -RTS 8081 $(spago sources)) and ran out of memory.

❯ (set -o noglob && stack exec trypurescript -- +RTS -N2 -A128m -M3G -s -RTS 8081 $(spago sources))
Reading Spago workspace configuration...

✓ Selecting package to build: try-purescript-server


Warning: nix (Nix) 2.34.7+1 is on the PATH (at /run/current-system/sw/bin/nix)
         but Stack's Nix integration is disabled. To mute this message in
         future, set notify-if-nix-on-path: false in Stack's configuration.
         
trypurescript: Heap exhausted;
trypurescript: Current maximum heap size is 3221225472 bytes (3072 MB).
trypurescript: Use `+RTS -M<size>' to increase it.
  36,907,900,144 bytes allocated in the heap
   7,635,067,328 bytes copied during GC
   3,479,980,704 bytes maximum residency (28 sample(s))
      21,874,656 bytes maximum slop
            3739 MiB total memory in use (0 MB lost due to fragmentation)

                                     Tot time (elapsed)  Avg pause  Max pause
  Gen  0       108 colls,    42 par    2.344s   3.292s     0.0305s    0.1313s
  Gen  1        28 colls,     5 par   39.524s  111.686s     3.9888s    7.0771s

  Parallel GC work balance: 86.50% (serial 0%, perfect 100%)

  TASKS: 9 (1 bound, 8 peak workers (8 total), using -N2)

  SPARKS: 7427 (7381 converted, 0 overflowed, 0 dud, 0 GC'd, 46 fizzled)

  INIT    time    0.001s  (  0.080s elapsed)
  MUT     time   42.664s  (  9.678s elapsed)
  GC      time   41.868s  (114.978s elapsed)
  EXIT    time    0.002s  (  0.005s elapsed)
  Total   time   84.534s  (124.742s elapsed)

  Alloc rate    865,091,047 bytes per MUT second

  Productivity  50.5% of total user, 7.8% of total elapsed

Running with -M4G succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to Spago v1

1 participant