Skip to content

Instantly share code, notes, and snippets.

@donovancrichton
Last active September 1, 2022 01:29
Show Gist options
  • Save donovancrichton/78a115734e9c09ee4da54149d0a9f175 to your computer and use it in GitHub Desktop.
Save donovancrichton/78a115734e9c09ee4da54149d0a9f175 to your computer and use it in GitHub Desktop.
Minimal Example of odd not covering error from matching on Sigma types.
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