mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-27 13:43:28 +03:00
5e9837828a
- Added initial implementations for terms and values - Error messages converted to pretty printer - Colorization for error messages - Color and console width option both as command line and repl command
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
1/2: Building Stuff (Stuff.idr)
|
|
2/2: Building Erase (Erase.idr)
|
|
Main> S Z
|
|
Main> S (S Z)
|
|
Main> S Z
|
|
Main> Error: x is not accessible in this context.
|
|
|
|
(interactive):1:15--1:16
|
|
|
|
|
1 | efn (\x, y => x) -- Bad
|
|
| ^
|
|
|
|
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
|
|
|
|
|
1 | efn plus -- Bad
|
|
| ^^^^
|
|
|
|
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
|
|
|
|
|
1 | efn lin -- Bad
|
|
| ^^^
|
|
|
|
Main> Error: x is not accessible in this context.
|
|
|
|
(interactive):1:20--1:21
|
|
|
|
|
1 | efn (\x, y => plus x y) -- Bad
|
|
| ^
|
|
|
|
Main> S (S Z)
|
|
Main> S (S Z)
|
|
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
|
|
|
|
|
1 | okfn ignore -- Bad
|
|
| ^^^^^^
|
|
|
|
Main> Bye for now!
|