From 5bf614df528f2bc48cbffc58bf569d3328d41b1f Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 28 May 2021 06:59:13 -0700 Subject: [PATCH 1/6] Update trypurescript server PS dep to v0.14.1 --- stack.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/stack.yaml b/stack.yaml index 3854edaa..de851c34 100644 --- a/stack.yaml +++ b/stack.yaml @@ -4,18 +4,13 @@ flags: lib-only: true these: assoc: false - quickcheck: false packages: - '.' extra-deps: -# purescript 0.14.0-rc5 -- github: purescript/purescript - commit: 7ecc42669c69682996f2196ba2eef6c4ca827348 - subdirs: - - . - - lib/purescript-ast - - lib/purescript-cst -- happy-1.19.9 +- purescript-0.14.1 +- purescript-ast-0.1.1.0 +- purescript-cst-0.1.1.0 +- happy-1.20.0 - language-javascript-0.7.0.0 - network-3.0.1.1 - these-1.0.1 From 65790557bb5ebe42c448e7c659dfa1313ca772db Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Thu, 27 May 2021 19:46:26 -0700 Subject: [PATCH 2/6] Update to lts-17.6 and remove unneeded deps - I'm following what is shown in purescript.cabal, so I'm not 100% sure this is entirely correct (e.g. removal of `network`) --- stack.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stack.yaml b/stack.yaml index de851c34..56b85912 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,4 +1,4 @@ -resolver: lts-13.26 +resolver: lts-17.6 flags: aeson-pretty: lib-only: true @@ -12,6 +12,3 @@ extra-deps: - purescript-cst-0.1.1.0 - happy-1.20.0 - language-javascript-0.7.0.0 -- network-3.0.1.1 -- these-1.0.1 -- semialign-1 From 51de2156ed75a42793ce07333463a40ffd2b04e0 Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 28 May 2021 07:01:33 -0700 Subject: [PATCH 3/6] Update versioned deps in trypurescript.cabal to match purescript.cabal - all except http-types, which isn't used in purescript --- trypurescript.cabal | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trypurescript.cabal b/trypurescript.cabal index e2575430..7b94fb03 100644 --- a/trypurescript.cabal +++ b/trypurescript.cabal @@ -15,7 +15,7 @@ data-dir: "" executable trypurescript build-depends: base ==4.*, aeson -any, - bytestring >=0.10.0.2 && <0.11, + bytestring >=0.10.12.0 && <0.11, data-default -any, directory -any, filepath -any, @@ -25,8 +25,8 @@ executable trypurescript purescript-cst, containers -any, http-types >= 0.8.5, - transformers ==0.5.*, - mtl ==2.2.2, + transformers >=0.5.6.2 && <0.6, + mtl >=2.2.2 && <2.3, text -any, time -any, warp -any From 53b601802c104c9ff3e6c2d0bef57057f830b83c Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 28 May 2021 07:02:41 -0700 Subject: [PATCH 4/6] Pin scotty and warp to lts-17.6 versions --- trypurescript.cabal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trypurescript.cabal b/trypurescript.cabal index 7b94fb03..c1fd3ffc 100644 --- a/trypurescript.cabal +++ b/trypurescript.cabal @@ -20,7 +20,7 @@ executable trypurescript directory -any, filepath -any, Glob -any, - scotty -any, + scotty ==0.12, purescript, purescript-cst, containers -any, @@ -29,7 +29,7 @@ executable trypurescript mtl >=2.2.2 && <2.3, text -any, time -any, - warp -any + warp ==3.3.14 hs-source-dirs: server main-is: Main.hs buildable: True From d7d4393f6fbebc372eb64a120cb6c72a45ef5ac2 Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 28 May 2021 16:59:26 -0700 Subject: [PATCH 5/6] Set all dependencies to `-any` and clarify why --- trypurescript.cabal | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/trypurescript.cabal b/trypurescript.cabal index c1fd3ffc..f826f038 100644 --- a/trypurescript.cabal +++ b/trypurescript.cabal @@ -13,23 +13,28 @@ author: Phil Freeman data-dir: "" executable trypurescript - build-depends: base ==4.*, + -- Since no one depends on this project as a library, + -- packages below are `-any` because their versions are determined + -- by the `stack.yml` file. Versions correspond to the ones + -- specified in the resolver (i.e. the package set) + -- unless it is a versioned library added via `extra-deps` field. + build-depends: base -any, aeson -any, - bytestring >=0.10.12.0 && <0.11, + bytestring -any, data-default -any, directory -any, filepath -any, Glob -any, - scotty ==0.12, + scotty -any, purescript, purescript-cst, containers -any, - http-types >= 0.8.5, - transformers >=0.5.6.2 && <0.6, - mtl >=2.2.2 && <2.3, + http-types -any, + transformers -any, + mtl -any, text -any, time -any, - warp ==3.3.14 + warp -any, hs-source-dirs: server main-is: Main.hs buildable: True From 1a7cf3c5ea1646be8929529296a3f1bfe4c9ebf1 Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 28 May 2021 17:08:31 -0700 Subject: [PATCH 6/6] Fix typo --- trypurescript.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trypurescript.cabal b/trypurescript.cabal index f826f038..9894408a 100644 --- a/trypurescript.cabal +++ b/trypurescript.cabal @@ -34,7 +34,7 @@ executable trypurescript mtl -any, text -any, time -any, - warp -any, + warp -any hs-source-dirs: server main-is: Main.hs buildable: True