Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 4bf0c91

Browse files
committed
Update dependencies, license
1 parent 873773f commit 4bf0c91

File tree

5 files changed

+50
-19
lines changed

5 files changed

+50
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/bower_components/
66
/node_modules/
77
/output/
8+
package-lock.json

LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright 2018 PureScript
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation and/or
11+
other materials provided with the distribution.
12+
13+
3. Neither the name of the copyright holder nor the names of its contributors
14+
may be used to endorse or promote products derived from this software without
15+
specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
21+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

bower.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
{
22
"name": "purescript-generics-rep",
3-
"ignore": [
4-
"**/.*",
5-
"node_modules",
6-
"bower_components",
7-
"output"
8-
],
9-
"license": "MIT",
3+
"homepage": "https://github.com/purescript/purescript-generics-rep",
4+
"license": "BSD-3-Clause",
105
"repository": {
116
"type": "git",
127
"url": "git://github.com/purescript/purescript-generics-rep.git"
138
},
9+
"ignore": [
10+
"**/.*",
11+
"bower_components",
12+
"node_modules",
13+
"output",
14+
"test",
15+
"bower.json",
16+
"gulpfile.js",
17+
"package.json"
18+
],
1419
"dependencies": {
15-
"purescript-enums": "#compiler/0.12",
16-
"purescript-foldable-traversable": "#compiler/0.12",
17-
"purescript-prelude": "#compiler/0.12"
20+
"purescript-enums": "^4.0.0",
21+
"purescript-foldable-traversable": "^4.0.0",
22+
"purescript-maybe": "^4.0.0",
23+
"purescript-newtype": "^3.0.0",
24+
"purescript-prelude": "^4.0.0"
1825
},
1926
"devDependencies": {
20-
"purescript-assert": "#compiler/0.12",
21-
"purescript-console": "#compiler/0.12"
27+
"purescript-assert": "^4.0.0",
28+
"purescript-console": "^4.0.0"
2229
}
2330
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"devDependencies": {
99
"eslint": "^4.19.1",
10-
"pulp": "^12.0.1",
10+
"pulp": "^12.2.0",
1111
"purescript-psa": "^0.6.0",
1212
"rimraf": "^2.6.2"
1313
}

test/Main.purs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ derive instance genericList :: G.Generic (List a) _
2424
instance eqList :: Eq a => Eq (List a) where
2525
eq x y = GEq.genericEq x y
2626

27-
instance ordList :: Ord a => Ord (List a) where
28-
compare x y = GOrd.genericCompare x y
29-
3027
instance showList :: Show a => Show (List a) where
3128
show x = GShow.genericShow x
3229

@@ -117,13 +114,13 @@ main = do
117114
assert $ cons 1 (cons 2 Nil) /= cons 1 Nil
118115

119116
log "Checking comparison EQ"
120-
assert $ (cons 1 (cons 2 Nil) `compare` cons 1 (cons 2 Nil)) == EQ
117+
assert $ (Pair Zero (Some One) `compare` Pair Zero (Some One)) == EQ
121118

122119
log "Checking comparison GT"
123-
assert $ (cons 1 (cons 2 Nil) `compare` cons 1 Nil) == GT
120+
assert $ (Pair (Some One) Zero `compare` Pair (Some Zero) Zero) == GT
124121

125122
log "Checking comparison LT"
126-
assert $ (cons 1 Nil `compare` cons 1 (cons 2 Nil)) == LT
123+
assert $ (Pair Zero One `compare` Pair One One) == LT
127124

128125
log "Checking simple bottom"
129126
assert $ bottom == A

0 commit comments

Comments
 (0)