mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +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.
32 lines
905 B
Plaintext
32 lines
905 B
Plaintext
1/1: Building lazybug (lazybug.idr)
|
|
Error: While processing right hand side of main. Can't solve constraint between: Bool and Lazy Bool.
|
|
|
|
lazybug:5:22--5:34
|
|
1 | bools : List Bool
|
|
2 | bools = [True, False]
|
|
3 |
|
|
4 | main : IO ()
|
|
5 | main = printLn $ or (map id bools)
|
|
^^^^^^^^^^^^
|
|
|
|
Error: While processing right hand side of main2. Can't solve constraint between: Bool and Lazy Bool.
|
|
|
|
lazybug:8:23--8:42
|
|
4 | main : IO ()
|
|
5 | main = printLn $ or (map id bools)
|
|
6 |
|
|
7 | main2 : IO ()
|
|
8 | main2 = printLn $ or (map (\x => x) bools)
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
Error: While processing right hand side of main4. Can't solve constraint between: Bool and Lazy Bool.
|
|
|
|
lazybug:14:22--14:27
|
|
10 | main3 : IO ()
|
|
11 | main3 = printLn $ or (map (\x => Delay x) bools)
|
|
12 |
|
|
13 | main4 : IO ()
|
|
14 | main4 = printLn $ or bools
|
|
^^^^^
|
|
|