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 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}
Original file line number Diff line number Diff 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-
6159An infix version of ` assoc ` .
6260
6361#### ` optional `
Original file line number Diff line number Diff 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`.
5858optional :: 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.
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- // module Test.Main
4-
53function showForeign ( a ) {
64 return JSON . stringify ( a ) ;
75}
You can’t perform that action at this time.
0 commit comments