Skip to content

Commit 824f3b3

Browse files
authored
Merge pull request #77 from nsaunders/compiler/0.13
Updates for PureScript 0.13
2 parents 301c30e + ffcc944 commit 824f3b3

File tree

8 files changed

+78
-26
lines changed

8 files changed

+78
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/.psci*
66
/src/.webpack.js
77
/.psc-ide-port
8+
/.spago

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ env:
2626
- secure: "K3g58P0HUnRLIa2te30XL8xmyzuvimzG0z5R4C2+fku/gC6kkYs2MT/Cc3MFYHt9FPGGOTfys3UR0aPkq2bSL+Y5WXbjutY9PNqsvA2MqMLxdpZirTW6N6yP2l/ilMnPnJUNxScnErqvk4JKvdybYrAxYRA1mC2x3UknCL7uFLowFB/GU/XyTBY3mhu5uIB5I//Lr/oKMxT1M98hA4T5WHbLEE6K5ozypbsX5yU8OOgf6+ZZO9YegBS7vD9zlZNZivObfX+N0tmWkGLp+1WZiI5x0BaYuNU2oFq+hQie/tHAQTvcmKfprreRPGr1R95878G8OpVuoVLX3yXEfznfV62RYJodHsOUDFOMRXbgoBPRGK3GsCts8UaOg0efG4Y67pbMYgXHROtrLxlBfZasrcu6Odh+ZlmV4eraMi6muJWkRwga03i7BtwiP3Aw47+ycoMympupRyDlzk9HCO7ZyhYXsN25RCOsY6HQ6U6k9WvG421KPEPGz5g4hBuVqq5svA8wAdT3XUGIkYkfPmSi2SK2xEDJhz/g5E5HazM8lbmZfFYCB8fthz3XuRuiQqHQov3VrBPMWYa4VxMsvbc2NFc+4DwenE6PaOBwrwcH1zdtlWZB4YpyCZPeXFrQwm5uvm3I3YKijBb4sNjzLCeUSR7QkuMiYa/sE/tb1yYPhFc="
2727

2828
install:
29-
- npm install -g bower pulp@12.3.1 purescript@0.12.3
29+
- npm install -g bower pulp@13.0.0 purescript@^0.13.0 spago@0.8.3
30+
- spago install
3031
- bower install
3132
- pip install --user -r docs/requirements.txt
3233

@@ -35,10 +36,12 @@ script:
3536
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export VERSION=pull-request-job-$TRAVIS_JOB_NUMBER;
3637
fi
3738
- if [[ "$TRAVIS_TAG" != "" ]]; then export VERSION=$TRAVIS_TAG; fi
38-
- travis_wait pulp build
39-
- travis_wait pulp test
40-
- travis_wait make examples
41-
- travis_wait make docs
39+
- spago build
40+
- spago test
41+
- rm -rf .spago output
42+
- pulp build
43+
- make examples
44+
- make docs
4245

4346
before_deploy: pip install --user awscli
4447

bower.json

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,35 @@
1313
"url": "git://github.com/owickstrom/hyper.git"
1414
},
1515
"dependencies": {
16-
"purescript-aff": "^5.0.1",
16+
"purescript-aff": "^5.1.1",
1717
"purescript-avar": "^3.0.0",
18-
"purescript-argonaut": "^5.0.0",
19-
"purescript-arrays": "^5.0.0",
20-
"purescript-control": "^4.0.0",
21-
"purescript-effect": "^2.0.0",
22-
"purescript-foldable-traversable": "^4.0.0",
23-
"purescript-generics-rep": "^6.0.0",
24-
"purescript-http-methods": "^4.0.1",
18+
"purescript-argonaut": "^6.0.0",
19+
"purescript-arrays": "^5.3.0",
20+
"purescript-control": "^4.1.0",
21+
"purescript-effect": "^2.0.1",
22+
"purescript-foldable-traversable": "^4.1.1",
23+
"purescript-generics-rep": "^6.1.1",
24+
"purescript-http-methods": "^4.0.2",
2525
"purescript-indexed-monad": "^1.0.0",
2626
"purescript-media-types": "^4.0.1",
2727
"purescript-node-fs-aff": "^6.0.0",
28-
"purescript-node-http": "^5.0.0",
29-
"purescript-ordered-collections": "^1.0.0",
28+
"purescript-node-http": "^5.0.1",
29+
"purescript-ordered-collections": "^1.6.1",
3030
"purescript-proxy": "^3.0.0",
3131
"purescript-random": "^4.0.0",
32-
"purescript-smolder": "^11.0.0",
33-
"purescript-strings": "^4.0.0",
34-
"purescript-transformers": "^4.1.0",
35-
"purescript-record-extra": "^1.0.0"
32+
"purescript-smolder": "^12.0.0",
33+
"purescript-strings": "^4.0.1",
34+
"purescript-transformers": "^4.2.0",
35+
"purescript-record-extra": "^3.0.0",
36+
"purescript-typelevel-prelude": "^5.0.0"
3637
},
3738
"devDependencies": {
3839
"purescript-psci-support": "^4.0.0",
39-
"purescript-spec": "^3.1.0",
40-
"purescript-spec-discovery": "^3.1.0"
40+
"purescript-spec": "^4.0.0",
41+
"purescript-spec-discovery": "^4.0.0"
42+
},
43+
"resolutions": {
44+
"purescript-spec": "^4.0.0",
45+
"purescript-typelevel-prelude": "^5.0.0"
4146
}
4247
}

packages.dhall

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
let mkPackage =
2+
https://raw.githubusercontent.com/purescript/package-sets/psc-0.13.0-20190626/src/mkPackage.dhall sha256:0b197efa1d397ace6eb46b243ff2d73a3da5638d8d0ac8473e8e4a8fc528cf57
3+
4+
let upstream =
5+
https://raw.githubusercontent.com/purescript/package-sets/psc-0.13.0-20190626/src/packages.dhall sha256:9905f07c9c3bd62fb3205e2108515811a89d55cff24f4341652f61ddacfcf148
6+
7+
let overrides = {=}
8+
9+
let additions = {=}
10+
11+
in upstream // overrides // additions

spago.dhall

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{ name =
2+
"hyper"
3+
, dependencies =
4+
[ "aff"
5+
, "avar"
6+
, "argonaut"
7+
, "arrays"
8+
, "console"
9+
, "control"
10+
, "effect"
11+
, "foldable-traversable"
12+
, "generics-rep"
13+
, "http-methods"
14+
, "indexed-monad"
15+
, "media-types"
16+
, "node-fs-aff"
17+
, "node-http"
18+
, "ordered-collections"
19+
, "proxy"
20+
, "psci-support"
21+
, "random"
22+
, "smolder"
23+
, "spec"
24+
, "spec-discovery"
25+
, "strings"
26+
, "transformers"
27+
, "record-extra"
28+
]
29+
, packages =
30+
./packages.dhall
31+
}

src/Hyper/Node/Server.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ data HttpRequest
5656
instance requestHttpRequest :: Monad m => Request HttpRequest m where
5757
getRequestData = do
5858
getConn :>>=
59-
case _ of
60-
{ request: HttpRequest _ d } -> ipure d
59+
case _ of
60+
{ request: HttpRequest _ d } -> ipure d
6161

6262

6363
-- A limited version of Writable () e, with which you can only write, not end,

test/Hyper/FormSpec.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Hyper.Middleware (runMiddleware)
1414
import Hyper.Test.TestServer (TestRequest(TestRequest))
1515
import Test.Spec (Spec, it, describe)
1616
import Test.Spec.Assertions (shouldEqual)
17-
import Test.Spec.Assertions.Aff (expectError)
17+
import Test.Spec.Assertions (expectError)
1818

1919
liftEither a. Either String a Aff a
2020
liftEither e =

test/Main.purs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ module Test.Main where
22

33
import Prelude
44
import Effect (Effect)
5+
import Effect.Aff (launchAff_)
56
import Test.Spec.Discovery (discover)
67
import Test.Spec.Reporter.Console (consoleReporter)
7-
import Test.Spec.Runner (run)
8+
import Test.Spec.Runner (runSpec)
89

910
main :: Effect Unit
10-
main = discover "Hyper\\..*Spec" >>= run [consoleReporter]
11+
main = discover "Hyper\\..*Spec" >>= runSpec [consoleReporter] >>> launchAff_

0 commit comments

Comments
 (0)