mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-29 03:24:02 +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.
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
1/1: Building Error1 (Error1.idr)
|
|
Error: While processing right hand side of wrong. Can't find an implementation for Show (Vect 4 Integer).
|
|
|
|
Error1:8:9--8:40
|
|
4 | Nil : Vect Z a
|
|
5 | (::) : a -> Vect k a -> Vect (S k) a
|
|
6 |
|
|
7 | wrong : String
|
|
8 | wrong = show (the (Vect _ _) [1,2,3,4])
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
1/1: Building Error2 (Error2.idr)
|
|
Error: While processing right hand side of show. Multiple solutions found in search of:
|
|
Show (Vect k Integer)
|
|
|
|
Error2:13:38--13:45
|
|
09 | show (x :: xs) = show x ++ ", " ++ show xs
|
|
10 |
|
|
11 | Show (Vect n Integer) where
|
|
12 | show [] = "END"
|
|
13 | show (x :: xs) = show x ++ ", " ++ show xs
|
|
^^^^^^^
|
|
|
|
Possible correct results:
|
|
Show implementation at Error2:11:1--13:45
|
|
Show implementation at Error2:7:1--9:45
|
|
Error: While processing right hand side of wrong. Multiple solutions found in search of:
|
|
Show (Vect 1 Integer)
|
|
|
|
Error2:16:9--16:34
|
|
12 | show [] = "END"
|
|
13 | show (x :: xs) = show x ++ ", " ++ show xs
|
|
14 |
|
|
15 | wrong : String
|
|
16 | wrong = show (the (Vect _ _) [1])
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Possible correct results:
|
|
Show implementation at Error2:11:1--13:45
|
|
Show implementation at Error2:7:1--9:45
|