summaryrefslogtreecommitdiff
path: root/src/Core/Term.idr
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2023-04-23 14:53:40 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2023-04-23 14:53:40 +0100
commit8baf4268940277164f1462187501225033ec93c4 (patch)
tree2a0407ca60b22dffad98e8daa5ab1db237959465 /src/Core/Term.idr
parent52b9e2f139444f012f3610e60321e4336d888bec (diff)
Define shape views.
Diffstat (limited to 'src/Core/Term.idr')
-rw-r--r--src/Core/Term.idr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Core/Term.idr b/src/Core/Term.idr
index a3ddac5..8c05e03 100644
--- a/src/Core/Term.idr
+++ b/src/Core/Term.idr
@@ -20,6 +20,14 @@ data Term : Nat -> Type where
%name Term t, u, v
+-- Impossibilities -------------------------------------------------------------
+
+export
+Uninhabited (Set = Pi f g) where uninhabited prf impossible
+
+export
+Uninhabited (Pi f g = Set) where uninhabited prf impossible
+
-- Weakening -------------------------------------------------------------------
public export