mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 00:10:31 +03:00
7aee7c9b7c
Why: * To implement robust cross-project go-to-definition in LSP i.e you can jump to definition of any global name coming from library dependencies, as well as from the local project files. What it does: * Modify `FC`s to carry `ModuleIdent` for .idr sources, file name for .ipkg sources or nothing for interactive runs. * Add `--install-with-src` to install the source code alongside the ttc binaries. The source is installed into the same directory as the corresponding ttc file. Installed sources are made read-only. * As we install the sources pinned to the related ttc files we gain the versioning of sources for free.
71 lines
1.6 KiB
Plaintext
71 lines
1.6 KiB
Plaintext
1/1: Building Holes (Holes.idr)
|
|
Error: While processing type of Vect_ext. Undefined name ~=~.
|
|
|
|
Holes:4:64--4:85
|
|
1 | import Data.Vect
|
|
2 | import Data.Fin
|
|
3 |
|
|
4 | Vect_ext : (v : Vect n a) -> (w : Vect n a) -> ((i : Fin n) -> index i v = index i w)
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Error: While processing type of Weird. Undefined name ~=~.
|
|
|
|
Holes:7:26--7:31
|
|
3 |
|
|
4 | Vect_ext : (v : Vect n a) -> (w : Vect n a) -> ((i : Fin n) -> index i v = index i w)
|
|
5 | -> v = w
|
|
6 |
|
|
7 | Weird : (v: Vect n a) -> v = v
|
|
^^^^^
|
|
|
|
Error: No type declaration for Main.Weird.
|
|
|
|
Holes:8:1--8:41
|
|
4 | Vect_ext : (v : Vect n a) -> (w : Vect n a) -> ((i : Fin n) -> index i v = index i w)
|
|
5 | -> v = w
|
|
6 |
|
|
7 | Weird : (v: Vect n a) -> v = v
|
|
8 | Weird v = Vect_ext ?hole0 ?hole1 ?hole2
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Error: While processing type of f. Undefined name Bool.
|
|
|
|
Holes:10:5--10:9
|
|
06 |
|
|
07 | Weird : (v: Vect n a) -> v = v
|
|
08 | Weird v = Vect_ext ?hole0 ?hole1 ?hole2
|
|
09 |
|
|
10 | f : Bool -> Nat
|
|
^^^^
|
|
|
|
Error: No type declaration for Main.f.
|
|
|
|
Holes:11:1--11:11
|
|
07 | Weird : (v: Vect n a) -> v = v
|
|
08 | Weird v = Vect_ext ?hole0 ?hole1 ?hole2
|
|
09 |
|
|
10 | f : Bool -> Nat
|
|
11 | f True = 0
|
|
^^^^^^^^^^
|
|
|
|
Main> Error: Undefined name help.
|
|
|
|
(Interactive):1:4--1:8
|
|
1 | :t help
|
|
^^^^
|
|
|
|
Main> Error: Undefined name hole0.
|
|
|
|
(Interactive):1:4--1:9
|
|
1 | :t hole0
|
|
^^^^^
|
|
|
|
Main> Error: Undefined name hole1.
|
|
|
|
(Interactive):1:4--1:9
|
|
1 | :t hole1
|
|
^^^^^
|
|
|
|
Main> Unknown name hole1
|
|
Main> Bye for now!
|