Idris2/tests/idris2/with003/expected
Ruslan Feizerakhmanov 7aee7c9b7c
[ new ] --install-with-src; refactoring around FCs (#1450)
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.
2021-06-05 12:53:22 +01:00

41 lines
1.2 KiB
Plaintext

1/1: Building Main (Main.idr)
Main> Error: Ambiguous elaboration. Possible results:
Main.myPrintLn "foo" Prelude.>> ?arg
Main.myPrintLn "foo" Main.Other.>> ?arg
(Interactive):1:4--1:19
1 | do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
^^^^^^^^^^^^^^^
Main> Error: Can't find an implementation for Num ().
(Interactive):1:60--1:64
1 | with Prelude.(>>) do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
^^^^
Main> Error: Ambiguous elaboration. Possible results:
Prelude.Nil
Data.Vect.Nil
(Interactive):1:4--1:6
1 | :t []
^^
Main> [] : Vect 0 ?elem
Main> [] : List ?a
Main> Error: When unifying Vect 0 ?elem and List ?a.
Mismatch between: Vect 0 ?elem and List ?a.
(Interactive):1:40--1:41
1 | :t with [Vect.Nil, Prelude.(::)] [1,2,3]
^
Main> the (Maybe Integer) (pure 4) : Maybe Integer
Main> Expected 'case', 'if', 'do', application or operator expression.
(Interactive):1:4--1:5
1 | :t with [] 4
^
Main> Bye for now!