File tree Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 16
16
" !LICENSE"
17
17
],
18
18
"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 "
25
25
},
26
26
"devDependencies" : {
27
- "purescript-console" : " ~0.1.1 "
27
+ "purescript-console" : " ^1.0.0 "
28
28
}
29
29
}
Original file line number Diff line number Diff line change @@ -53,11 +53,9 @@ Associates a value with a specific option.
53
53
#### ` (:=) `
54
54
55
55
``` purescript
56
- (:=) :: forall opt value. Option opt value -> value -> Options opt
56
+ infixr 6 assoc as :=
57
57
```
58
58
59
- _ right-associative / precedence 6_
60
-
61
59
An infix version of ` assoc ` .
62
60
63
61
#### ` optional `
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ infixr 6 assoc as :=
56
56
-- | are ignored; passing `Nothing` for the second argument will result in an
57
57
-- | empty `Options`.
58
58
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 := _ )
60
60
61
61
-- | The default way of creating `Option` values. Constructs an `Option` with
62
62
-- | the given key, which passes the given value through unchanged.
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- // module Test.Main
4
-
5
3
function showForeign ( a ) {
6
4
return JSON . stringify ( a ) ;
7
5
}
You can’t perform that action at this time.
0 commit comments