Idris2/tests/idris2/basic/basic061/IgnoreDo.idr
2023-09-07 14:57:22 +01:00

19 lines
241 B
Idris

module IgnoreDo
bound : Maybe () -> Maybe b -> Maybe b
bound m n = do
x <- m
let y = Z
n
ignored : Maybe () -> Maybe b -> Maybe b
ignored m n = do
_ <- m
let _ = Z
n
seqd : Maybe () -> Maybe b -> Maybe b
seqd m n = do
m
n