How to deal with Agda not being sure in whether to generate constructor case in the `with` statement?
问题 I have the following code: open import Data.Nat open import Agda.Builtin.Char open import Data.Maybe digit' : ℕ → Maybe ℕ digit' n with compare n (primCharToNat '9') ... | greater _ _ = nothing ... | _ = ? digit : Char → Maybe ℕ digit c = digit' (primCharToNat c) Unfortunately, Agda "load file" command in emacs fails with the following message: tmp.agda:7,1-8,12 I'm not sure if there should be a case for the constructor less, because I get stuck when trying to solve the following unification