summaryrefslogtreecommitdiff
path: root/transfer/lib/bool.tr
diff options
context:
space:
mode:
Diffstat (limited to 'transfer/lib/bool.tr')
-rw-r--r--transfer/lib/bool.tr4
1 files changed, 4 insertions, 0 deletions
diff --git a/transfer/lib/bool.tr b/transfer/lib/bool.tr
new file mode 100644
index 000000000..b8c1c95a5
--- /dev/null
+++ b/transfer/lib/bool.tr
@@ -0,0 +1,4 @@
+depif : (A:Type) -> (B:Type) -> (b:Bool) -> A -> B -> if Type b then A else B
+depif _ _ True x _ = x
+depif _ _ False _ y = y
+