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.tr2
1 files changed, 2 insertions, 0 deletions
diff --git a/transfer/lib/bool.tr b/transfer/lib/bool.tr
index b8c1c95a5..2639422b7 100644
--- a/transfer/lib/bool.tr
+++ b/transfer/lib/bool.tr
@@ -1,3 +1,5 @@
+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