Idris2/tests/idris2/casetree/casetree002/Issue1079.idr
2023-09-07 14:57:22 +01:00

15 lines
164 B
Idris

%default total
g3 : (Nat, Nat) -> Nat
g3 (x, y) = x
g3 _ = 6
f : Monad m => m (Nat, Nat)
h3 : Monad m => m Nat
h3 = do
(x, y) <- f
| _ => pure 5
pure x