mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +03:00
2e98dd6dab
* Abandon auto search on undefined name These might arise from names in other modules that haven't been imported. But it's going to be an error whatever, so give up straight away. Fixes #1925 * Fix typo * Fix test source * Record possible cause when we can't solve a goal Normally, it's just because we searched and failed. But maybe sometimes, it's because there's an undefined name, in which case, we can include this in the error message. This is good to record because it means we don't abandon elaboration at the wrong time! Say, if a search fails due to an undefined name, but it was only in one branch of an ambiguous elaboration. * Add necessary arguments for perf009 test
16 lines
323 B
Plaintext
16 lines
323 B
Plaintext
1/3: Building A (A.idr)
|
|
2/3: Building B (B.idr)
|
|
3/3: Building C (C.idr)
|
|
Error: While processing right hand side of foo. Can't find an implementation for Monad (StateT AFoo Identity).
|
|
|
|
C:14:5--14:12
|
|
10 |
|
|
11 | foo : X ()
|
|
12 | foo =
|
|
13 | do
|
|
14 | pure ()
|
|
^^^^^^^
|
|
|
|
Possible cause: Undefined name A.AFoo.
|
|
|