File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Here's one last example of a sticky situation:
2929// getAttribute :: String -> Node -> Maybe String
3030// $ :: Selector -> IO Node
3131
32- // getControlNode :: IO (Maybe (IO Node))
32+ // getControlNode :: Selector -> IO (Maybe (IO Node))
3333const getControlNode = compose (map (map ($)), map (getAttribute (' aria-controls' )), $);
3434```
3535
@@ -166,7 +166,7 @@ Let's clean up the last example for closure (no, not that kind):
166166// getAttribute :: String -> Node -> Maybe String
167167// $ :: Selector -> IO Node
168168
169- // getControlNode :: IO (Maybe Node)
169+ // getControlNode :: Selector -> IO (Maybe Node)
170170const getControlNode = compose (chain (traverse (IO .of , $)), map (getAttribute (' aria-controls' )), $);
171171```
172172
You can’t perform that action at this time.
0 commit comments