summaryrefslogtreecommitdiff
path: root/transfer/lib/bool.tra
blob: 2639422b71f010b87598dcf2e2677ab7e8ec59e8 (plain)
1
2
3
4
5
6
import prelude

depif : (A:Type) -> (B:Type) -> (b:Bool) -> A -> B -> if Type b then A else B
depif _ _ True x _ = x
depif _ _ False _ y = y