this commit includes minor changes to the wording of error messages. see
test diff for more info.
resolves: #101
pounce/mikan:hiding_instance_errs into main this commit includes minor changes to the wording of error messages. see
test diff for more info.
resolves: #101
this commit includes minor changes to the wording of error messages. see test diff for more info. resolves: #101
@ -60,6 +60,7 @@ import Mikan.Utils.VarSet (VarSet)
import Mikan.Utils.VarSet qualified as VarSet
import Mikan.Utils.Impossible
import Generic.Data (FiniteEnumeration(..))
This import should go before all the Mikan. imports. (I really gotta write that port of sort-imports...)
@ -1754,3 +1754,2 @@
-- Andreas, 2018年10月18日, issue #3289: postfix projections have no hiding info.
unless (caseMaybe h True $ sameHiding $ projArgInfo proj) $
softTypeError $ WrongHidingInProjection d
whenJust h $ \h -> unless (sameHiding h $ projArgInfo proj) $
Prefer whenJust h \h ->. BlockArguments is enabled globally.
@ -613,3 +613,3 @@
-- Found a visible argument but expected a hidden one:
-- That's an error, as we cannot insert a visible lambda.
if visible h' then typeError $ WrongHidingInLambda target else do
if visible h' then typeError $ WrongHidingInLambda (getHiding h) target else do
Please include the reproducers from #101 as failing tests with implicit arguments.
@ -1,4 +1,4 @@
Issue1413WrongHiding.agda:12.1-14: error: [WrongHidingInProjection]
Wrong hiding used for projection Foo.foo
Unexpected implicit projection used Foo.foo
This error message doesn't make a lot of sense. Projections can't be implicit, but they could take an implicit argument. The actual issue is that Foo.foo expects a visible argument but has been given an implicit one, and the error should mention both. The expected visibility is in the projArgInfo proj.
@ -1,3 +1,3 @@
Issue3289-rhs.agda:16.11-13: error: [IllegalHidingInPostfixProjection]
Illegal hiding in postfix projection ⦃ .x ⦄
Postfix projection is an instance argument, which is illegal ⦃ .x ⦄
Maybe (fsep etc):
Postfix projections can only be visible arguments, but ⦃ .x ⦄ is an instance argument
3f8004b28e
c4efe7fcd8
Looks good, please rebase on main.
26a524af6b
cb89416d17
cb89416d17
2a04f41d09
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?