-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Case split causes my function to no longer be covering #3364
Comments
what's the result of case-splitting? |
Refl |
Shrunk further: decFn : (x : Char) -> Dec (x === ' ') -> ()
decFn ' ' (Yes Refl) = ?decFn_rhs_0
decFn x (No contra) = ?decFn_rhs_1
-----
-- Issue3364> :r
-- 1/1: Building Issue3364 (Issue3364.idr)
-- Error: isChEq is not covering.
--
-- Issue3364:8:1--8:45
-- 4 | import Decidable.Equality
-- 5 |
-- 6 | %default covering
-- 7 |
-- 8 | isChEq : (x : Char) -> Dec (x === ' ') -> ()
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
-- Missing cases:
-- isChEq _ (Yes _) Wat. 🤨 |
I get a different error @CodingCellist
after fixing that typo, you can inspect
As always, you can fix the issue in various ways:
Of course that's harder to do in a |
Gist with minimal example
Steps to Reproduce
Case split on
prf
hereExpected Behavior
Case splits and
decideWord
is still covering after reloading.Observed Behavior
decideWord
is no longer coveringError for reference:
The text was updated successfully, but these errors were encountered: