diff --git a/.travis.yml b/.travis.yml index 968390b..be7e6e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,17 @@ language: node_js dist: trusty sudo: required node_js: stable +env: + - PATH=$HOME/purescript:$PATH install: + - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p') + - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz + - tar -xvf $HOME/purescript.tar.gz -C $HOME/ + - chmod a+x $HOME/purescript - npm install -g bower - npm install - - bower install script: + - bower install --production - npm run -s build after_success: - >- diff --git a/bower.json b/bower.json index 3d57243..c017433 100644 --- a/bower.json +++ b/bower.json @@ -17,6 +17,8 @@ "package.json" ], "dependencies": { - "purescript-generics": "^4.0.0" + "purescript-either": "^4.0.0", + "purescript-prelude": "^4.0.0", + "purescript-strings": "^4.0.0" } } diff --git a/package.json b/package.json index 46af5de..5a4bff0 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,12 @@ "private": true, "scripts": { "clean": "rimraf output && rimraf .pulp-cache", - "build": "pulp build --censor-lib --strict", + "build": "pulp build -- --censor-lib --strict", "test": "pulp test" }, "devDependencies": { - "pulp": "^11.0.0", - "purescript-psa": "^0.5.0", - "purescript": "^0.11.1", - "rimraf": "^2.6.1" + "pulp": "^12.2.0", + "purescript-psa": "^0.6.0", + "rimraf": "^2.6.2" } } diff --git a/src/Data/HTTP/Method.purs b/src/Data/HTTP/Method.purs index 5a61723..a6973cd 100644 --- a/src/Data/HTTP/Method.purs +++ b/src/Data/HTTP/Method.purs @@ -9,7 +9,6 @@ module Data.HTTP.Method import Prelude import Data.Either (Either(..), either) -import Data.Generic (class Generic) import Data.String as Str data Method @@ -37,7 +36,6 @@ data Method derive instance eqMethod :: Eq Method derive instance ordMethod :: Ord Method -derive instance genericMethod :: Generic Method instance showMethod :: Show Method where show OPTIONS = "OPTIONS" @@ -64,7 +62,6 @@ unCustomMethod (CustomMethod m) = m derive instance eqCustomMethod :: Eq CustomMethod derive instance ordCustomMethod :: Ord CustomMethod -derive instance genericCustomMethod :: Generic CustomMethod instance showCustomMethod :: Show CustomMethod where show (CustomMethod m) = "(CustomMethod " <> show m <> ")"