File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -108,5 +108,12 @@ opt :: forall k v. (IsOption v) => String -> Option k v
108108```
109109
110110
111+ #### ` key `
112+
113+ ``` purescript
114+ key :: forall k v. Option k v -> String
115+ ```
116+
117+
111118
112119
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module Data.Options
55 , optionFn
66 , options
77 , opt
8+ , key
89 , (:=)
910 ) where
1011
@@ -94,9 +95,14 @@ foreign import options """
9495 }
9596" " " :: forall a . Options a -> Foreign
9697
97- foreign import opt
98- " " "
99- function opt (k) {
98+ foreign import opt " " "
99+ function opt(k) {
100100 return k;
101101 }
102- " " " :: forall k v . (IsOption v ) => String -> Option k v
102+ " " " :: forall k v . (IsOption v ) => String -> Option k v
103+
104+ foreign import key " " "
105+ function key(o){
106+ return o;
107+ }
108+ " " " :: forall k v . Option k v -> String
You can’t perform that action at this time.
0 commit comments