Last active
September 1, 2022 01:29
-
-
Save donovancrichton/78a115734e9c09ee4da54149d0a9f175 to your computer and use it in GitHub Desktop.
Minimal Example of odd not covering error from matching on Sigma types.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CantMatchOnSigmaFunc | |
%default total | |
data Expr : Type -> Type where | |
Lam : {a, b : Type} -> (a -> Expr b) -> Expr (a -> b) | |
{- | |
f : (a : Type ** Expr a) -> (b : Type ** Expr b) | |
f (ty ** focus) = | |
case focus of | |
(Lam f) => ?stuck | |
-} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment