Skip to content

Instantly share code, notes, and snippets.

@donovancrichton
Created July 22, 2021 06:06
Show Gist options
  • Save donovancrichton/9c2db6156949979985c7d010454b9e22 to your computer and use it in GitHub Desktop.
Save donovancrichton/9c2db6156949979985c7d010454b9e22 to your computer and use it in GitHub Desktop.
Programing being checked as %default total when it probably should not be total.
%default total
data Fix : (Type -> Type) -> Type where
MkFix : f (Fix f) -> Fix f
F : Type -> Type
F x = x -> x
fix : Fix F -> Fix F
fix (MkFix f) = f (MkFix f)
use : Fix F
use = fix (MkFix {f=F} fix)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment