Skip to content

Commit ed26615

Browse files
committed
Updates for 1.0 core libraries
1 parent 3123fcd commit ed26615

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

bower.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"!LICENSE"
1717
],
1818
"dependencies": {
19-
"purescript-foreign": "~0.7.0",
20-
"purescript-maps": "~0.5.4",
21-
"purescript-tuples": "~0.4.0",
22-
"purescript-monoid": "~0.3.2",
23-
"purescript-maybe": "~0.3.5",
24-
"purescript-contravariant": "~0.2.3"
19+
"purescript-foreign": "^1.0.0",
20+
"purescript-maps": "^1.0.0",
21+
"purescript-tuples": "^1.0.0",
22+
"purescript-monoid": "^1.0.0",
23+
"purescript-maybe": "^1.0.0",
24+
"purescript-contravariant": "^1.0.0"
2525
},
2626
"devDependencies": {
27-
"purescript-console": "~0.1.1"
27+
"purescript-console": "^1.0.0"
2828
}
2929
}

docs/Data/Options.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ Associates a value with a specific option.
5353
#### `(:=)`
5454

5555
``` purescript
56-
(:=) :: forall opt value. Option opt value -> value -> Options opt
56+
infixr 6 assoc as :=
5757
```
5858

59-
_right-associative / precedence 6_
60-
6159
An infix version of `assoc`.
6260

6361
#### `optional`

src/Data/Options.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ infixr 6 assoc as :=
5656
-- | are ignored; passing `Nothing` for the second argument will result in an
5757
-- | empty `Options`.
5858
optional :: forall opt value. Option opt value -> Option opt (Maybe value)
59-
optional option = Op $ maybe mempty (option :=)
59+
optional option = Op $ maybe mempty (option := _)
6060

6161
-- | The default way of creating `Option` values. Constructs an `Option` with
6262
-- | the given key, which passes the given value through unchanged.

test/Test/Main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
// module Test.Main
4-
53
function showForeign(a){
64
return JSON.stringify(a);
75
}

0 commit comments

Comments
 (0)