Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use spago for managing the server package set, attempt 2 #150

Merged
merged 1 commit into from
Apr 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ stack build

# Install PureScript dependencies
cd staging
psc-package install
spago install

# note: globs like **/src/** do not work
stack exec trypurescript 8081 ".psc-package/psc-0.13.6-*/*/*/src/**/*.purs" "src/*.purs"
stack exec trypurescript 8081 $(spago sources)
# should output that is is compiling the sources (first time)
# then: Setting phasers to stun... (port 8081) (ctrl-c to quit)
```
Expand Down
1 change: 1 addition & 0 deletions staging/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.spago/
8 changes: 8 additions & 0 deletions staging/packages.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.13.6-20200404/packages.dhall sha256:f239f2e215d0cbd5c203307701748581938f74c4c78f4aeffa32c11c131ef7b6

let overrides = {=}

let additions = {=}

in upstream // overrides // additions
53 changes: 0 additions & 53 deletions staging/psc-package.json

This file was deleted.

52 changes: 52 additions & 0 deletions staging/spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ name = "try-purescript-server"
, dependencies =
[ "arrays"
, "bifunctors"
, "console"
, "const"
, "contravariant"
, "control"
, "distributive"
, "effect"
, "either"
, "enums"
, "exceptions"
, "exists"
, "foldable-traversable"
, "foreign"
, "foreign-object"
, "free"
, "functions"
, "functors"
, "generics-rep"
, "globals"
, "identity"
, "integers"
, "lazy"
, "math"
, "maybe"
, "ordered-collections"
, "prelude"
, "profunctor"
, "proxy"
, "quickcheck"
, "random"
, "react"
, "react-dom"
Comment on lines +34 to +35
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this mainly for testing the shim stuff? Do we intend to have a process for adding additional libraries from the set. Or perhaps we should just blanket state we are not adding more libraries until we figure out a caching/purging solution for externs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I originally added these a week or two ago for testing the shim stuff, yeah. I'd like to at least add back libraries which were previously provided by other backends (#142). After that, saying we are not going to add any more libraries until we figure out a caching/purging solution (at which point we can add the whole package set) works for me.

, "record"
, "refs"
, "semirings"
, "st"
, "strings"
, "tailrec"
, "transformers"
, "tuples"
, "typelevel-prelude"
, "unfoldable"
, "validation"
, "web-dom"
, "web-html"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
}