Idris2/tests/idris2/basic/basic061/IgnoreDo.idr

19 lines
241 B
Idris
Raw Normal View History

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