Skip to content

Commit dcd53f6

Browse files
authored
Final few updates for 0.9 (#11)
1 parent 509c2ac commit dcd53f6

File tree

12 files changed

+11
-18
lines changed

12 files changed

+11
-18
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
language: node_js
22
sudo: required
3-
node_js:
4-
- 5
5-
- 6
3+
node_js: 6
64
install:
75
- npm install
86
- npm install -g bower
9-
- bower install
7+
- bower install --production
108
script:
11-
- npm test
9+
- npm run -s build
10+
- bower install
11+
- npm -s test
1212
after_success:
1313
- >-
1414
test $TRAVIS_TAG &&

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"purescript-globals": "^1.0.0",
2121
"purescript-integers": "^1.0.0",
2222
"purescript-maps": "^1.1.0",
23-
"purescript-pathy": "https://github.com/slamdata/purescript-pathy.git#master",
23+
"purescript-pathy": "^2.0.0",
2424
"purescript-string-parsers": "^1.0.1",
25-
"purescript-unfoldable": "1.0.0"
25+
"purescript-unfoldable": "^1.0.0"
2626
}
2727
}

src/Data/URI.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module Data.URI
66
import Prelude
77

88
import Control.Alt ((<|>))
9-
import Control.Apply ((<*), (*>))
109

1110
import Data.Array (catMaybes)
1211
import Data.Either (Either(..), either)

src/Data/URI/Authority.purs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ module Data.URI.Authority
55

66
import Prelude
77

8-
import Control.Apply ((*>))
9-
108
import Data.Array (fromFoldable)
119
import Data.Int (fromNumber)
1210
import Data.Maybe (Maybe(..), maybe)

src/Data/URI/HierarchicalPart.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module Data.URI.HierarchicalPart
66
import Prelude
77

88
import Control.Alt ((<|>))
9-
import Control.Apply ((*>))
109

1110
import Data.Array (catMaybes)
1211
import Data.Maybe (Maybe(..))

src/Data/URI/Host.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module Data.URI.Host
66
import Prelude
77

88
import Control.Alt ((<|>))
9-
import Control.Apply ((*>), (<*))
109

1110
import Data.String as S
1211
import Data.URI.Common (parseSubDelims, parsePCTEncoded, parseUnreserved, joinWith, rxPat)

src/Data/URI/Path.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module Data.URI.Path
1616
import Prelude
1717

1818
import Control.Alt ((<|>))
19-
import Control.Bind ((=<<))
2019

2120
import Data.Either (Either(..), either)
2221
import Data.Maybe (Maybe(..), fromMaybe)

src/Data/URI/Query.purs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module Data.URI.Query
77
import Prelude
88

99
import Control.Alt ((<|>))
10-
import Control.Apply ((*>))
1110

1211
import Data.Either (fromRight)
1312
import Data.List (List(..))
@@ -60,4 +59,3 @@ rgxSpace = unsafePartial $ fromRight $ Rgx.regex "%20" (Rgx.noFlags { global = t
6059

6160
rgxPlus Rgx.Regex
6261
rgxPlus = unsafePartial $ fromRight $ Rgx.regex "\\+" (Rgx.noFlags { global = true })
63-

src/Data/URI/RelativePart.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module Data.URI.RelativePart
66
import Prelude
77

88
import Control.Alt ((<|>))
9-
import Control.Apply ((*>))
109

1110
import Data.Array (catMaybes)
1211
import Data.Maybe (Maybe(..))

src/Data/URI/Types.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module Data.URI.Types where
33
import Prelude
44

55
import Data.Either (Either)
6+
import Data.Generic (class Generic)
67
import Data.Maybe (Maybe)
78
import Data.Path.Pathy (Path, File, Dir, Abs, Rel, Sandboxed, Unsandboxed)
89
import Data.StrMap (StrMap)
@@ -78,6 +79,7 @@ instance showRelativeRef ∷ Show RelativeRef where
7879

7980
derive instance eqURISchemeEq URIScheme
8081
derive instance ordURISchemeOrd URIScheme
82+
derive instance genericURISchemeGeneric URIScheme
8183

8284
instance showURISchemeShow URIScheme where
8385
show (URIScheme s) = "URIScheme " <> show s
@@ -94,12 +96,14 @@ instance showRelativePart ∷ Show RelativePart where
9496

9597
derive instance eqAuthorityEq Authority
9698
derive instance ordAuthorityOrd Authority
99+
derive instance genericAuthorityGeneric Authority
97100

98101
instance showAuthorityShow Authority where
99102
show (Authority userinfo hosts) = "Authority (" <> show userinfo <> ") " <> show hosts
100103

101104
derive instance eqHostEq Host
102105
derive instance ordHostOrd Host
106+
derive instance genericQueryGeneric Host
103107

104108
instance showHostShow Host where
105109
show (IPv6Address ip) = "IPv6Address " <> show ip

0 commit comments

Comments
 (0)