Skip to content

Commit

Permalink
Use spago for managing the server package set, attempt 2 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
hdgarrood authored Apr 12, 2020
1 parent a60f845 commit 4341a0d
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 56 deletions.
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"
, "record"
, "refs"
, "semirings"
, "st"
, "strings"
, "tailrec"
, "transformers"
, "tuples"
, "typelevel-prelude"
, "unfoldable"
, "validation"
, "web-dom"
, "web-html"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
}

0 comments on commit 4341a0d

Please sign in to comment.