diff options
author | Greg Brown <greg.brown01@ed.ac.uk> | 2024-11-15 15:44:30 +0000 |
---|---|---|
committer | Greg Brown <greg.brown01@ed.ac.uk> | 2024-11-15 15:44:30 +0000 |
commit | 3caa95a139538bb07c74847ca3aba2603a03c502 (patch) | |
tree | afa588ecffb2efd05b1202c7ce5ae6005c86b8d2 /src/Inky/Term.idr | |
parent | 865dc549baf613e45e2f79036d54850a483fa509 (diff) |
Add compilation to scheme.
Extract parser as an independent project.
Diffstat (limited to 'src/Inky/Term.idr')
-rw-r--r-- | src/Inky/Term.idr | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Inky/Term.idr b/src/Inky/Term.idr index 3c5d214..884256f 100644 --- a/src/Inky/Term.idr +++ b/src/Inky/Term.idr @@ -5,9 +5,9 @@ import public Inky.Type import Data.List.Quantifiers import Data.Singleton import Data.These -import Inky.Data.SnocList.Quantifiers -import Inky.Decidable -import Inky.Decidable.Maybe +import Flap.Data.SnocList.Quantifiers +import Flap.Decidable +import Flap.Decidable.Maybe %hide Prelude.Ops.infixl.(>=>) @@ -85,13 +85,6 @@ data NotFunction : (bound : List String) -> (a : Ty tyCtx) -> Type %name NotFunction contra export -isFunctionRecompute : - {a : Ty tyCtx} -> IsFunction bound a dom cod -> (Singleton dom, Singleton cod) -isFunctionRecompute Done = (Val _, Val _) -isFunctionRecompute (Step {a} prf) = - mapFst (\case Val _ => Val _) $ isFunctionRecompute prf - -export isFunctionUnique : IsFunction bound a dom cod -> IsFunction bound a dom' cod' -> (dom = dom', cod = cod') isFunctionUnique Done Done = (Refl, Refl) |