diff options
author | Greg Brown <greg.brown01@ed.ac.uk> | 2023-01-01 12:11:50 +0000 |
---|---|---|
committer | Greg Brown <greg.brown01@ed.ac.uk> | 2023-01-01 12:11:50 +0000 |
commit | 7e184c20d545afb55f6e962b8bfea882b23699fa (patch) | |
tree | 8eb3a3dbf230ef959ffc77019127cf5d78a2aada /src/Obs/Main.idr | |
parent | 34c8ab97457d3c727947635fbb3ae36545908867 (diff) |
Index normal forms with relevance.
- Remove container types.
- Replace sum types with booleans.
- Remove type annotation from absurd.
- Add original type as argument to cast.
- Make if (was case) take a lambda for the return type.
Diffstat (limited to 'src/Obs/Main.idr')
-rw-r--r-- | src/Obs/Main.idr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Obs/Main.idr b/src/Obs/Main.idr index fc7140a..4d7c856 100644 --- a/src/Obs/Main.idr +++ b/src/Obs/Main.idr @@ -54,7 +54,7 @@ main' : (input: String) -> Logging AnsiStyle (Exists NormalForm.Context) main' input = do defs <- parse input blk <- abstractBlock defs - ctx <- checkBlock blk + (_ ** (ctx, _)) <- checkBlock blk pure (Evidence _ ctx) partial |