Skip to content

Commit 1e5e256

Browse files
authored
Merge pull request #501 from eush77/ch12-getcontrolnode
ch12: fix type signature of getControlNode
2 parents d76268e + c7dce34 commit 1e5e256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch12.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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))
3333
const 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)
170170
const getControlNode = compose(chain(traverse(IO.of, $)), map(getAttribute('aria-controls')), $);
171171
```
172172

0 commit comments

Comments
 (0)