2020-05-19 20:25:18 +03:00
|
|
|
1/2: Building Stuff (Stuff.idr)
|
|
|
|
2/2: Building Erase (Erase.idr)
|
|
|
|
Main> S Z
|
|
|
|
Main> S (S Z)
|
|
|
|
Main> S Z
|
2020-07-28 15:11:42 +03:00
|
|
|
Main> Error: x is not accessible in this context.
|
|
|
|
|
|
|
|
(interactive):1:15--1:16
|
|
|
|
|
|
2020-07-22 22:16:43 +03:00
|
|
|
1 | efn (\x, y => x) -- Bad
|
2020-07-28 15:11:42 +03:00
|
|
|
| ^
|
|
|
|
|
|
|
|
Main> Error: When unifying Nat -> Nat -> Nat and (0 _ : Nat) -> Nat -> Nat.
|
|
|
|
Mismatch between: Nat -> Nat -> Nat and (0 _ : Nat) -> Nat -> Nat.
|
|
|
|
|
|
|
|
(interactive):1:5--1:9
|
|
|
|
|
|
2020-07-22 22:16:43 +03:00
|
|
|
1 | efn plus -- Bad
|
2020-07-28 15:11:42 +03:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
Main> Error: When unifying (1 _ : Nat) -> Nat -> Nat and (0 _ : Nat) -> Nat -> Nat.
|
|
|
|
Mismatch between: (1 _ : Nat) -> Nat -> Nat and (0 _ : Nat) -> Nat -> Nat.
|
|
|
|
|
|
|
|
(interactive):1:5--1:8
|
|
|
|
|
|
2020-07-22 22:16:43 +03:00
|
|
|
1 | efn lin -- Bad
|
2020-07-28 15:11:42 +03:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
Main> Error: x is not accessible in this context.
|
|
|
|
|
|
|
|
(interactive):1:20--1:21
|
|
|
|
|
|
2020-07-22 22:16:43 +03:00
|
|
|
1 | efn (\x, y => plus x y) -- Bad
|
2020-07-28 15:11:42 +03:00
|
|
|
| ^
|
|
|
|
|
2020-05-19 20:25:18 +03:00
|
|
|
Main> S (S Z)
|
|
|
|
Main> S (S Z)
|
2020-07-28 15:11:42 +03:00
|
|
|
Main> Error: When unifying (0 _ : Nat) -> Nat -> Nat and Nat -> Nat -> Nat.
|
|
|
|
Mismatch between: (0 _ : Nat) -> Nat -> Nat and Nat -> Nat -> Nat.
|
|
|
|
|
|
|
|
(interactive):1:6--1:12
|
|
|
|
|
|
2020-07-22 22:16:43 +03:00
|
|
|
1 | okfn ignore -- Bad
|
2020-07-28 15:11:42 +03:00
|
|
|
| ^^^^^^
|
|
|
|
|
2020-05-19 20:25:18 +03:00
|
|
|
Main> Bye for now!
|