@@ -186,29 +186,29 @@ pub fun fold-while( n : int, init : a, f : (int,a) -> e maybe<a> ) : e a
186186// ----------------------------------------------------------------------------
187187
188188// Generic inequality
189- pub fun default/ (!=) (x : a, y : a, ? (== ) : ( a, a) -> bool ) : bool
189+ pub fun default/ (!=) (x : a, y : a, ? (== ) : ( a, a) -> e bool ) : e bool
190190 not(x== y)
191191
192192// Generic equality if `cmp` exists
193- pub fun default/cmp/ (==) (x : a, y : a, ? cmp : ( a, a) -> order ) : bool
193+ pub fun default/cmp/ (==) (x : a, y : a, ? cmp : ( a, a) -> e order ) : e bool
194194 match cmp(x,y)
195195 Eq -> True
196196 _ -> False
197197
198198// Generic greater than
199- pub fun default/cmp/ (>) (x : a, y : a, ? cmp : ( a, a) -> order ) : bool
199+ pub fun default/cmp/ (>) (x : a, y : a, ? cmp : ( a, a) -> e order ) : e bool
200200 cmp(x,y) == Gt
201201
202202// Generic lower than
203- pub fun default/cmp/ (<) (x : a, y : a, ? cmp : ( a, a) -> order ) : bool
203+ pub fun default/cmp/ (<) (x : a, y : a, ? cmp : ( a, a) -> e order ) : e bool
204204 cmp(x,y) == Lt
205205
206206// Generic greater than or equal
207- pub fun default/cmp/ (>=) (x : a, y : a, ? cmp : ( a, a) -> order ) : bool
207+ pub fun default/cmp/ (>=) (x : a, y : a, ? cmp : ( a, a) -> e order ) : e bool
208208 y < x
209209
210210// Generic lower than or equal
211- pub fun default/cmp/ (<=) (x : a, y : a, ? cmp : ( a, a) -> order ) : bool
211+ pub fun default/cmp/ (<=) (x : a, y : a, ? cmp : ( a, a) -> e order ) : e bool
212212 y > x
213213
214214
0 commit comments