0 | module Cheerio.Traversing
7 | %foreign "node:lambda: (selector, cheerio) => cheerio.find(selector)"
8 | prim_find : String -> Cheerio -> PrimIO Cheerio
11 | find : HasIO io => String -> Cheerio -> io Cheerio
12 | find selector cheerio = primIO $
prim_find selector cheerio
16 | %foreign "node:lambda: (selector, cheerio) => cheerio.parent(selector)"
17 | prim_parensBy : String -> Cheerio -> PrimIO Cheerio
20 | parentBy : HasIO io => String -> Cheerio -> io Cheerio
21 | parentBy selector cheerio = primIO $
prim_parensBy selector cheerio
25 | parent : HasIO io => Cheerio -> io Cheerio
26 | parent = parentBy ""
29 | %foreign "node:lambda: cheerio => cheerio.parents()"
30 | prim_parents : Cheerio -> PrimIO Cheerio
33 | %foreign "node:lambda: (selector, cheerio) => cheerio.parents(selector)"
34 | prim_parenstBy : String -> Cheerio -> PrimIO Cheerio
37 | parentsBy : HasIO io => String -> Cheerio -> io Cheerio
38 | parentsBy selector cheerio = primIO $
prim_parenstBy selector cheerio
41 | parents : HasIO io => Cheerio -> io Cheerio
42 | parents = parentsBy ""
46 | %foreign "node:lambda: (selector, cheerio) => cheerio.parentsUntil(selector)"
47 | prim_parentsUntil : String -> Cheerio -> PrimIO Cheerio
50 | parentsUntil : HasIO io => String -> Cheerio -> io Cheerio
51 | parentsUntil selector cheerio = primIO $
prim_parentsUntil selector cheerio
55 | %foreign "node:lambda: (selector, cheerio) => cheerio.closest(selector)"
56 | prim_closestBy : String -> Cheerio -> PrimIO Cheerio
59 | closestBy : HasIO io => String -> Cheerio -> io Cheerio
60 | closestBy selector cheerio = primIO $
prim_closestBy selector cheerio
63 | closest : HasIO io => Cheerio -> io Cheerio
64 | closest = closestBy ""
68 | %foreign "node:lambda: (selector, cheerio) => cheerio.next(selector)"
69 | prim_nextBy : String -> Cheerio -> PrimIO Cheerio
72 | nextBy : HasIO io => String -> Cheerio -> io Cheerio
73 | nextBy selector cheerio = primIO $
prim_nextBy selector cheerio
76 | next : HasIO io => Cheerio -> io Cheerio
81 | %foreign "node:lambda: (selector, cheerio) => cheerio.nextAll(selector)"
82 | prim_nextAll : String -> Cheerio -> PrimIO Cheerio
85 | nextAllBy : HasIO io => String -> Cheerio -> io Cheerio
86 | nextAllBy selector cheerio = primIO $
prim_nextAll selector cheerio
89 | nextAll : HasIO io => Cheerio -> io Cheerio
95 | %foreign "node:lambda: (selector, cheerio) => cheerio.nextUntil(selector)"
96 | prim_nextUntil : String -> Cheerio -> PrimIO Cheerio
99 | nextUntil : HasIO io => String -> Cheerio -> io Cheerio
100 | nextUntil selector cheerio = primIO $
prim_nextUntil selector cheerio
105 | %foreign "node:lambda: (selector, cheerio) => cheerio.prev(selector)"
106 | prim_prevBy : String -> Cheerio -> PrimIO Cheerio
109 | prevBy : HasIO io => String -> Cheerio -> io Cheerio
110 | prevBy selector cheerio = primIO $
prim_prevBy selector cheerio
113 | prev : HasIO io => Cheerio -> io Cheerio
118 | %foreign "node:lambda: (selector, cheerio) => cheerio.prevAll(selector)"
119 | prim_prevAll : String -> Cheerio -> PrimIO Cheerio
122 | prevAllBy : HasIO io => String -> Cheerio -> io Cheerio
123 | prevAllBy selector cheerio = primIO $
prim_prevAll selector cheerio
126 | prevAll : HasIO io => Cheerio -> io Cheerio
127 | prevAll = prevBy ""
131 | %foreign "node:lambda: (selector, cheerio) => cheerio.prevUntil(selector)"
132 | prim_prevUntil : String -> Cheerio -> PrimIO Cheerio
135 | prevUntil : HasIO io => String -> Cheerio -> io Cheerio
136 | prevUntil selector cheerio = primIO $
prim_prevUntil selector cheerio
141 | %foreign "node:lambda: (selector, cheerio) => cheerio.siblings(selector)"
142 | prim_siblingsBy : String -> Cheerio -> PrimIO Cheerio
145 | siblingsBy : HasIO io => String -> Cheerio -> io Cheerio
146 | siblingsBy selector cheerio = primIO $
prim_siblingsBy selector cheerio
149 | siblings : HasIO io => Cheerio -> io Cheerio
150 | siblings = siblingsBy ""
155 | %foreign "node:lambda: (selector, cheerio) => cheerio.children(selector)"
156 | prim_childrenBy : String -> Cheerio -> PrimIO Cheerio
159 | childrenBy : HasIO io => String -> Cheerio -> io Cheerio
160 | childrenBy selector cheerio = primIO $
prim_childrenBy selector cheerio
163 | children : HasIO io => Cheerio -> io Cheerio
164 | children = childrenBy ""
167 | %foreign "node:lambda: (cheerio) => cheerio.contents()"
168 | prim_contents : Cheerio -> PrimIO Cheerio
171 | contents : HasIO io =>Cheerio -> io Cheerio
172 | contents cheerio = primIO $
prim_contents cheerio
175 | %foreign "node:lambda: (cheerio) => cheerio.first()"
176 | prim_first : Cheerio -> PrimIO Cheerio
179 | first : HasIO io =>Cheerio -> io Cheerio
180 | first cheerio = primIO $
prim_first cheerio
184 | %foreign "node:lambda: (cheerio) => cheerio.last()"
185 | prim_last : Cheerio -> PrimIO Cheerio
188 | last : HasIO io =>Cheerio -> io Cheerio
189 | last cheerio = primIO $
prim_last cheerio
193 | %foreign "node:lambda: (cheerio) => cheerio.end()"
194 | prim_end : Cheerio -> PrimIO Cheerio
197 | end : HasIO io =>Cheerio -> io Cheerio
198 | end cheerio = primIO $
prim_end cheerio
202 | %foreign "node:lambda: (selector, cheerio) => cheerio.is(selector)"
203 | prim_is : String -> Cheerio -> PrimIO Bool
206 | is : HasIO io => String -> Cheerio -> io Bool
207 | is selector cheerio = primIO $
prim_is selector cheerio
210 | %foreign "node:lambda: (idx, cheerio) => cheerio.is(idx)"
211 | prim_eq : Int32 -> Cheerio -> PrimIO Cheerio
214 | eq : HasIO io => Int -> Cheerio -> io Cheerio
215 | eq idx cheerio = primIO $
prim_eq (cast idx) cheerio
219 | %foreign "node:lambda: (toList, cheerio) => toList(cheerio.toArray())"
220 | prim_toArray : (AnyPtr -> Ptr (List AnyNode)) -> Cheerio -> PrimIO (List AnyNode)
223 | toArray : HasIO io =>Cheerio -> io (List AnyNode)
224 | toArray cheerio = primIO $
prim_toArray arrayToList cheerio