Created
July 22, 2021 06:06
-
-
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.
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
%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